Skip to contentSkip to conversation

for bootsplash to operate correctly...

DISCUSSION Luke Kenneth Casson Leighton 2 participants 3 messages Sep 8, 2004 – Sep 9, 2004 SELinux security module

lore
Share & tools
lore
#0 lore raw

... i hacked in the three following permissions:

# this is to allow splash to write to /proc/splash
allow initrc_t proc_t:file { write };
# this is for /sbin/fbresolution to write to /dev/fb0
allow initrc_t framebuf_device:t:chr_file { write };
# this is for fbmngplay to do err... *clueless*
allow initrc_t self:capability { sys_admin };

i look forward to one day writing a policy for the bootsplash package :)

l.

Signature · 13 lines
--
Truth, honesty and respect are rare commodities that all spring from
the same well: Love.  If you love yourself and everyone and everything
around you, funnily and coincidentally enough, life gets a lot better.
--
<a href="http://lkcl.net">      lkcl.net      </a> <br />
<a href="mailto:[email protected]"> [email protected] </a> <br />


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#1 lore raw
Quoted 11 lines · Luke Kenneth Casson Leighton

... i hacked in the three following permissions:

# this is to allow splash to write to /proc/splash
allow initrc_t proc_t:file { write };
# this is for fbmngplay to do err... *clueless*
allow initrc_t self:capability { sys_admin };

i look forward to one day writing a policy for the bootsplash package :)

I threw together a bootsplash policy several months ago to get the Gentoo LiveCD going. I always forget about it since I only use bootsplash on the LiveCD. I didn't encounter that sys_admin capability that you have, but it might be a result of the bootsplash setings. We probably should label /proc/splash differently, now that I think about it.

Signature · 8 lines
Chris PeBenito
<[email protected]>
Developer,
Hardened Gentoo Linux
Embedded Gentoo Linux
 
Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE6AF9243
Key fingerprint = B0E6 877A 883F A57A 8E6A  CB00 BC8E E42D E6AF 9243

/sbin/fbresolution -- system_u:object_r:bootsplash_exec_t
/sbin/fbtruetype.static -- system_u:object_r:bootsplash_exec_t

#DESC bootsplash - Bootsplash screen
#
# Author: Chris PeBenito <[email protected]>
#

type bootsplash_t, domain;
type bootsplash_exec_t, file_type, exec_type;

role system_r types bootsplash_t;

uses_shlib(bootsplash_t) domain_auto_trans(initrc_t, bootsplash_exec_t, bootsplash_t)

allow bootsplash_t init_t:fd use;
allow initrc_t proc_t:file write;

allow bootsplash_t framebuf_device_t:chr_file { read write ioctl }; allow bootsplash_t console_device_t:chr_file { read write }; allow bootsplash_t tty_device_t:chr_file { read write };

#2 lore raw
Quoted 13 lines · Chris PeBenito
Quoted 11 lines · Luke Kenneth Casson Leighton

... i hacked in the three following permissions:

# this is to allow splash to write to /proc/splash
allow initrc_t proc_t:file { write };
# this is for fbmngplay to do err... *clueless*
allow initrc_t self:capability { sys_admin };

i look forward to one day writing a policy for the bootsplash package :)

Quoted 6 lines

I threw together a bootsplash policy several months ago to get the Gentoo LiveCD going. I always forget about it since I only use bootsplash on the LiveCD. I didn't encounter that sys_admin capability that you have, but it might be a result of the bootsplash setings. We probably should label /proc/splash differently, now that I think about it.

fbmngplay is the "animations" program.

[change of topic]

i had to disable that for other reasons: because it is running, it seems to lock out the /usr partition. because of that, umount at shutdown actually remounts it as read-only. because of _that_, stupid-debian-selinux can't stupid-remount the stupid-/usr partition and you end up with an unusable system.

if i disable selinux before one of these boots (permissive) then it boots up fine.

l.

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.