policy patch: some misc additions
The following patch against latest CVS adds some misc policy:
logrotate.te: the suse version doesn't work without this modutil.te: I see no reason why user_r should ever touch insmod_t iptables.te: added tc (traffic control) to the iptables domain rpm.te: gpg doesn't want to verify signatures otherwise xdm.te: needed with XFree86 4.3, kdm 3.3 and nvidia types.fc: added file contexts for some kde and gnome libraries
(filenames are like /opt/kde3/lib/kde3/kcalc.so) the nVidia libs need some extra file context, too
gpg_agent_macros.te: permission was needed because of wrongly labeled
files (see above)
ssh_agent_macros.te: make sure user_home_t and nfs_t behave the same;
also add my name (I'm the original author of this policy)
ssh-agent.te: ssh wants to create ~/.ssh if it doesn't exist
Thomas
Signature · 2 lines
http://www.cip.ifi.lmu.de/~bleher/selinux/ - my SELinux pages GPG-Fingerprint: BC4F BB16 30D6 F253 E3EA D09E C562 2BAE B2F4 ABE7
domains/program/logrotate.te +4 -0
@@ -42,7 +42,11 @@ # it should not require this allow logrotate_t {staff_home_dir_t sysadm_home_dir_t}:dir { getattr search }; +ifdef(`distro_suse', ` +allow logrotate_t {staff_home_dir_t sysadm_home_dir_t}:dir { read }; +', ` dontaudit logrotate_t {staff_home_dir_t sysadm_home_dir_t}:dir { read }; +') # create lock files rw_dir_create_file(logrotate_t, var_lock_t)
domains/program/modutil.te +0 -1
@@ -79,7 +79,6 @@ ') can_network(insmod_t) can_ypbind(insmod_t) -in_user_role(insmod_t) uses_shlib(insmod_t) read_locale(insmod_t)
domains/program/sulogin.te +9 -2
@@ -15,12 +15,19 @@ general_domain_access(sulogin_t); domain_auto_trans({ initrc_t init_t }, sulogin_exec_t, sulogin_t) -allow sulogin_t shell_exec_t:file r_file_perms; +uses_shlib(sulogin_t) +ifdef(`distro_suse', ` +# suse doesnt use pam with sulogin... +domain_auto_trans(sulogin_t, shell_exec_t, sysadm_t) +allow sulogin_t init_t:process getpgid; +allow sulogin_t self:capability sys_tty_config; +', ` domain_trans(sulogin_t, shell_exec_t, sysadm_t) +allow sulogin_t shell_exec_t:file r_file_perms; -uses_shlib(sulogin_t); can_setexec(sulogin_t) can_getsecurity(sulogin_t) +') allow sulogin_t shadow_t:file { getattr read }; r_dir_file(sulogin_t, etc_t)
domains/program/unused/iptables.te +6 -0
@@ -12,6 +12,8 @@ role sysadm_r types iptables_t; domain_auto_trans(sysadm_t, iptables_exec_t, iptables_t) +ifdef(`distro_suse', `domain_auto_trans(initrc_t, iptables_exec_t, iptables_t)') + ifdef(`modutil.te', ` # for modprobe allow iptables_t sbin_t:dir search;
@@ -56,3 +58,7 @@ # system-config-network appends to /var/log allow iptables_t var_log_t:file { append }; + +# for /usr/bin/tc +allow iptables_t self:netlink_route_socket { create getattr bind nlmsg_read nlmsg_write read write }; +
domains/program/unused/rpm.te +5 -0
@@ -64,6 +64,11 @@ domain_auto_trans(rpm_script_t, cupsd_exec_t, cupsd_t) ') +ifdef(`gpg.te', ` +# gpg wants this so it does not dump core on errors +allow rpm_t self:process { setrlimit }; +') + # for a bug in rm dontaudit initrc_t pidfile:file write;
domains/program/unused/xdm.te +1 -0
@@ -72,6 +72,7 @@ #allow xdm_t memory_device_t:chr_file { execute read write }; allow xdm_t { urandom_device_t random_device_t }:chr_file { getattr read ioctl }; +allow xdm_xserver_t zero_device_t:chr_file { read write execute }; # Transition to user domains for user sessions. domain_trans(xdm_t, xsession_exec_t, unpriv_userdomain)
file_contexts/program/apache.fc +4 -0
@@ -32,3 +32,7 @@ /var/log/apache-ssl(2)?(/.*)? system_u:object_r:httpd_log_t /var/run/apache-ssl(2)?.pid.* -- system_u:object_r:httpd_var_run_t /var/run/gcache_port -s system_u:object_r:httpd_var_run_t +ifdef(`distro_suse', ` +# suse puts shell scripts there :-( +/usr/share/apache2/.* -- system_u:object_r:bin_t +')
file_contexts/program/chkpwd.fc +3 -0
@@ -1,3 +1,6 @@ # chkpwd /sbin/unix_chkpwd -- system_u:object_r:chkpwd_exec_t /sbin/unix_verify -- system_u:object_r:chkpwd_exec_t +ifdef(`distro_suse', ` +/sbin/unix2_chkpwd -- system_u:object_r:chkpwd_exec_t +')
file_contexts/program/iptables.fc +1 -0
@@ -5,4 +5,5 @@ /usr/sbin/ipchains.* -- system_u:object_r:iptables_exec_t /usr/sbin/iptables.* -- system_u:object_r:iptables_exec_t /usr/sbin/ip6tables.* -- system_u:object_r:iptables_exec_t +/usr/sbin/tc -- system_u:object_r:iptables_exec_t
Nur in mod/file_contexts/program: iptables.fc.orig.
file_contexts/program/rpm.fc +1 -0
@@ -50,4 +50,5 @@ /usr/bin/online_update -- system_u:object_r:rpm_exec_t /sbin/yast2 -- system_u:object_r:rpm_exec_t /var/lib/YaST2(/.*)? system_u:object_r:rpm_var_lib_t +/var/log/YaST2(/.*)? system_u:object_r:rpm_log_t ')
file_contexts/types.fc +7 -0
@@ -224,6 +224,9 @@ /u?dev/n?osst[0-3].* -c system_u:object_r:tape_device_t /u?dev/n?pt[0-9]+ -c system_u:object_r:tape_device_t /u?dev/tape.* -c system_u:object_r:tape_device_t +ifdef(`distro_suse', ` +/u?dev/usbscanner -c system_u:object_r:scanner_device_t +') /u?dev/usb/scanner.* -c system_u:object_r:scanner_device_t /u?dev/usb/dc2xx.* -c system_u:object_r:scanner_device_t /u?dev/usb/mdc800.* -c system_u:object_r:scanner_device_t
@@ -242,6 +245,7 @@ /opt/[^/]*/lib(/.*)? system_u:object_r:lib_t /opt/[^/]*/lib/lib[^/]*\.so(\.[^/]*)* -- system_u:object_r:shlib_t /opt/[^/]*/lib/.*/lib[^/]*\.so(\.[^/]*)* -- system_u:object_r:shlib_t +/opt/.*/lib/.*\.so -- system_u:object_r:shlib_t /opt/[^/]*/man(/.*)? system_u:object_r:man_t /opt/[^/]*/libexec(/.*)? system_u:object_r:bin_t
@@ -336,11 +340,14 @@ /usr/lib(64)?/autofs/.*\.so -- system_u:object_r:shlib_t /usr/lib(64)?/perl5/man(/.*)? system_u:object_r:man_t /usr/lib(64)?/perl.*\.so -- system_u:object_r:shlib_t +/usr/lib(64)?/(NORM|NVIDIA)_lib.*\.so(\.[^/]*)* -- system_u:object_r:shlib_t +/usr/lib(64)?/tls/NVIDIA/(NORM|NVIDIA)_lib.*\.so(\.[^/]*)* -- system_u:object_r:shlib_t /usr/lib(64)?/selinux(/.*)? system_u:object_r:policy_src_t /usr/lib(64)?/emacsen-common/.* system_u:object_r:bin_t /usr/lib(64)?/.*/bin(/.*)? system_u:object_r:bin_t /usr/lib(64)?/gconv/.*\.so -- system_u:object_r:shlib_t /usr/share/guile/g-wrapped/.*\.so -- system_u:object_r:shlib_t +/usr/lib/[^/]*\.so -- system_u:object_r:shlib_t # # /usr/.*glibc.*-linux/lib(64)?
macros/program/gpg_agent_macros.te +0 -3
@@ -94,9 +94,6 @@ # read kde font cache allow $1_gpg_pinentry_t usr_t:file { getattr read }; -# pinentry-qt needs this (executes a KDE style library) -allow $1_gpg_pinentry_t lib_t:file { execute }; - allow $1_gpg_pinentry_t { proc_t self }:dir { search }; allow $1_gpg_pinentry_t { proc_t self }:lnk_file { read }; # read /proc/meminfo
macros/program/ssh_agent_macros.te +3 -3
@@ -3,7 +3,8 @@ # # -# Author: Russell Coker <[email protected]> +# Authors: Russell Coker <[email protected]>, +# Thomas Bleher <[email protected]> # #
@@ -42,7 +43,6 @@ allow $1_ssh_agent_t autofs_t:dir { search getattr }; ') rw_dir_create_file($1_ssh_agent_t, nfs_t) -can_exec($1_ssh_agent_t, nfs_t) ')dnl end nfs_home_dirs uses_shlib($1_ssh_agent_t)
@@ -70,7 +70,7 @@ can_unix_connect($1_t, $1_ssh_agent_t) # transition back to normal privs upon exec -domain_auto_trans($1_ssh_agent_t, { bin_t shell_exec_t $1_home_t }, $1_t) +domain_auto_trans($1_ssh_agent_t, { bin_t shell_exec_t $1_home_t ifdef(`nfs_home_dirs', `nfs_t')}, $1_t) allow $1_ssh_agent_t bin_t:dir search; # allow reading of /usr/bin/X11 (is a symlink)
macros/program/ssh_macros.te +1 -1
@@ -32,7 +32,7 @@ allow $1_ssh_t autofs_t:dir { search getattr }; ') ifdef(`nfs_home_dirs', ` -rw_dir_create_file($1_ssh_t, nfs_t) +create_dir_file($1_ssh_t, nfs_t) ')dnl end if nfs_home_dirs # Transition from the user domain to the derived domain.
Quoted 3 lines · Thomas Bleher
The following patch against latest CVS adds some misc policy:
logrotate.te: the suse version doesn't work without this
I think that this is a bug in logrotate. Looking at the source to figure out what the problem is would be a good idea.
Quoted 1 line
modutil.te: I see no reason why
user_rshould ever touchinsmod_t
I agree. How does it happen?
Quoted 1 line
iptables.te: added tc (traffic control) to the iptables domain
domain_auto_trans(initrc_t, iptables_exec_t, iptables_t) is already included in daemon_base_domain(). Does SUSE have a change to daemon_base_domain()?
In either case this does not belong in the CVS policy.
Why do you have tc labelled as iptables_exec_t? On Debian and Fedora tc is working well labelled as ifconfig_exec_t.
Quoted 1 line
rpm.te: gpg doesn't want to verify signatures otherwise
I think it's best to unconditionally allow that, I've put it in my tree.
Quoted 1 line
xdm.te: needed with XFree86 4.3, kdm 3.3 and nvidia
Why would xdm_xserver_t need it but user_xserver_t not need it? I've added it to macros/program/xserver_macros.te in my tree.
Quoted 3 lines
types.fc: added file contexts for some kde and gnome libraries
(filenames are like/opt/kde3/lib/kde3/kcalc.so) the nVidia libs need some extra file context, too
I added /dev/usbscanner to my tree with the distro_suse ifdef.
/opt/.*/lib/.*\.so -- system_u:object_r:shlib_t
I'm not sure if the above line needs to have ifdef distro_suse around it. Comments anyone?
Quoted 2 lines
gpg_agent_macros.te: permission was needed because of wrongly labeled
files (see above)
OK, in my tree.
Quoted 3 lines
ssh_agent_macros.te: make sure
user_home_tandnfs_tbehave the same;
also add my name (I'm the original author of this policy)
I made a minor change to that to make it more readable and removed my name from the credits.
Quoted 1 line
ssh-agent.te: ssh wants to create ~/.ssh if it doesn't exist
I've put that in my tree.
The things that I've put in my tree will be in the next patches against the CVS that I send to the list.
Signature · 9 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.
Quoted 8 lines · Russell Coker
Quoted 3 lines · Thomas Bleher
The following patch against latest CVS adds some misc policy:
logrotate.te: the suse version doesn't work without this
I think that this is a bug in logrotate. Looking at the source to figure out what the problem is would be a good idea.
I will look at the code and see why it's happening.
Quoted 4 lines
Quoted 1 line
iptables.te: added tc (traffic control) to the iptables domain
domain_auto_trans(initrc_t, iptables_exec_t, iptables_t)is already included indaemon_base_domain(). Does SUSE have a change todaemon_base_domain()?
No, it's the same as everywhere else. I can't remember why I added this (it has been in my tree for a while), but, as you noted, it should work without so you can forget about that part.
Quoted 2 lines
Why do you have tc labelled as
iptables_exec_t? On Debian and Fedora tc is working well labelled asifconfig_exec_t.
Ahh, hadn't seen this.
Then I propose the following patch instead:
file_contexts/program/ifconfig.fc +1 -0
@@ -3,6 +3,7 @@ /sbin/iwconfig -- system_u:object_r:ifconfig_exec_t /sbin/ip -- system_u:object_r:ifconfig_exec_t /sbin/tc -- system_u:object_r:ifconfig_exec_t +/usr/sbin/tc -- system_u:object_r:ifconfig_exec_t /bin/ip -- system_u:object_r:ifconfig_exec_t /sbin/ethtool -- system_u:object_r:ifconfig_exec_t /sbin/mii-tool -- system_u:object_r:ifconfig_exec_t
It could also be surrounded by ifdef(distro_suse', ') if noone else has tc under /usr/sbin.
Quoted 4 lines
Quoted 1 line
xdm.te: needed with XFree86 4.3, kdm 3.3 and nvidia
Why would
xdm_xserver_tneed it butuser_xserver_tnot need it? I've added it to macros/program/xserver_macros.te in my tree.
Not sure. KDM wouldn't want to start without it, but users don't seem to need it. It don't think it's a problem to allow it unconditionally.
Thanks for your comments!
Thomas
Signature · 2 lines
http://www.cip.ifi.lmu.de/~bleher/selinux/ - my SELinux pages GPG-Fingerprint: BC4F BB16 30D6 F253 E3EA D09E C562 2BAE B2F4 ABE7
Quoted 42 lines · Thomas Bleher
The following patch against latest CVS adds some misc policy:
logrotate.te: the suse version doesn't work without this modutil.te: I see no reason why
user_rshould ever touchinsmod_tiptables.te: added tc (traffic control) to the iptables domain rpm.te: gpg doesn't want to verify signatures otherwise xdm.te: needed with XFree86 4.3, kdm 3.3 and nvidia types.fc: added file contexts for some kde and gnome libraries
(filenames are like/opt/kde3/lib/kde3/kcalc.so) the nVidia libs need some extra file context, too
gpg_agent_macros.te: permission was needed because of wrongly labeled
files (see above)
ssh_agent_macros.te: make sureuser_home_tandnfs_tbehave the same;
also add my name (I'm the original author of this policy)
ssh-agent.te: ssh wants to create ~/.ssh if it doesn't existThomas
diff -ur orig/file_contexts/types.fc mod/file_contexts/types.fc
file_contexts/types.fc 2004-09-11 14:47:06.000000000 +0200 renamed from file_contexts/types.fc 2004-09-11 14:31:47.000000000 +0200 +4
-0@@ -224,6 +224,9 @@ /u?dev/n?osst[0-3].* -c system_u:object_r:tape_device_t /u?dev/n?pt[0-9]+ -c system_u:object_r:tape_device_t /u?dev/tape.* -c system_u:object_r:tape_device_t +ifdef(`distro_suse', ` +/u?dev/usbscanner -c system_u:object_r:scanner_device_t +') /u?dev/usb/scanner.* -c system_u:object_r:scanner_device_t /u?dev/usb/dc2xx.* -c system_u:object_r:scanner_device_t /u?dev/usb/mdc800.* -c system_u:object_r:scanner_device_t@@ -242,6 +245,7 @@ /opt/[^/]*/lib(/.*)? system_u:object_r:lib_t /opt/[^/]*/lib/lib[^/]*\.so(\.[^/]*)* -- system_u:object_r:shlib_t /opt/[^/]*/lib/.*/lib[^/]*\.so(\.[^/]*)* -- system_u:object_r:shlib_t +/opt/.*/lib/.*\.so -- system_u:object_r:shlib_t /opt/[^/]*/man(/.*)? system_u:object_r:man_t /opt/[^/]*/libexec(/.*)? system_u:object_r:bin_t@@ -336,11 +340,14 @@ /usr/lib(64)?/autofs/.*\.so -- system_u:object_r:shlib_t
file_contexts/types.fc 2004-09-11 14:47:06.000000000 +0200 line 350
Quoted 10 lines
file_contexts/types.fc 2004-09-11 14:47:06.000000000 +0200 renamed from file_contexts/types.fc 2004-09-11 14:31:47.000000000 +0200 +3
-0/usr/lib(64)?/perl5/man(/.*)? system_u:object_r:man_t /usr/lib(64)?/perl.*\.so -- system_u:object_r:shlib_t +/usr/lib(64)?/(NORM|NVIDIA)_lib.*\.so(\.[^/]*)* -- system_u:object_r:shlib_t +/usr/lib(64)?/tls/NVIDIA/(NORM|NVIDIA)_lib.*\.so(\.[^/]*)* -- system_u:object_r:shlib_t /usr/lib(64)?/selinux(/.*)? system_u:object_r:policy_src_t /usr/lib(64)?/emacsen-common/.* system_u:object_r:bin_t /usr/lib(64)?/.*/bin(/.*)? system_u:object_r:bin_t /usr/lib(64)?/gconv/.*\.so -- system_u:object_r:shlib_t /usr/share/guile/g-wrapped/.*\.so -- system_u:object_r:shlib_t +/usr/lib/[^/]*\.so -- system_u:object_r:shlib_t
Why add this? Why not /usr/lib(64)?/[^/]*\.so ? If this rule is added, some other rules can be deleted.
Signature · 7 lines
James Carter <[email protected]> National Security Agency -- 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.
Quoted 16 lines · James Carter
Quoted 15 lines · Thomas Bleher
The following patch against latest CVS adds some misc policy:
types.fc: added file contexts for some kde and gnome libraries
(filenames are like/opt/kde3/lib/kde3/kcalc.so) the nVidia libs need some extra file context, toodiff -ur orig/file_contexts/types.fc mod/file_contexts/types.fc
file_contexts/types.fc 2004-09-11 14:47:06.000000000 +0200 renamed from file_contexts/types.fc 2004-09-11 14:31:47.000000000 +0200 +2
-0@@ -336,11 +340,14 @@ /usr/lib(64)?/autofs/.*\.so -- system_u:object_r:shlib_t /usr/lib(64)?/perl5/man(/.*)? system_u:object_r:man_t /usr/lib(64)?/perl.*\.so -- system_u:object_r:shlib_t +/usr/lib(64)?/(NORM|NVIDIA)_lib.*\.so(\.[^/]*)* -- system_u:object_r:shlib_t +/usr/lib(64)?/tls/NVIDIA/(NORM|NVIDIA)_lib.*\.so(\.[^/]*)* -- system_u:object_r:shlib_t
Quoted 8 lines
file_contexts/types.fc 2004-09-11 14:47:06.000000000 +0200 line 350
Quoted 6 lines
file_contexts/types.fc 2004-09-11 14:47:06.000000000 +0200 renamed from file_contexts/types.fc 2004-09-11 14:31:47.000000000 +0200 +1
-0/usr/lib(64)?/selinux(/.*)? system_u:object_r:policy_src_t /usr/lib(64)?/emacsen-common/.* system_u:object_r:bin_t /usr/lib(64)?/.*/bin(/.*)? system_u:object_r:bin_t /usr/lib(64)?/gconv/.*\.so -- system_u:object_r:shlib_t /usr/share/guile/g-wrapped/.*\.so -- system_u:object_r:shlib_t +/usr/lib/[^/]*\.so -- system_u:object_r:shlib_tWhy add this? Why not /usr/lib(64)?/[^/]*\.so ?
Because I have no 64bit system and didn't think of it? ;-)
Quoted 1 line
If this rule is added, some other rules can be deleted.
True. We already have
/usr/lib(64)?/.*/.*\.so -- system_u:object_r:shlib_t
a few lines above, so we can probably just say
/usr/lib(64)?/.*\.so -- system_u:object_r:shlib_t
and be OK.
Patch which does this attached.
Thomas
Signature · 2 lines
http://www.cip.ifi.lmu.de/~bleher/selinux/ - my SELinux pages GPG-Fingerprint: BC4F BB16 30D6 F253 E3EA D09E C562 2BAE B2F4 ABE7
file_contexts/types.fc +1 -5
@@ -334,16 +334,12 @@ # /usr/lib(64)?(/.*)? system_u:object_r:lib_t /usr/lib(64)?/lib[^/]*\.so(\.[^/]*)* -- system_u:object_r:shlib_t -/usr/lib(64)?/python.*\.so -- system_u:object_r:shlib_t /usr/lib(64)?/.*/lib[^/]*\.so(\.[^/]*)* -- system_u:object_r:shlib_t -/usr/lib(64)?/.*/.*\.so -- system_u:object_r:shlib_t -/usr/lib(64)?/autofs/.*\.so -- system_u:object_r:shlib_t +/usr/lib(64)?/.*\.so -- system_u:object_r:shlib_t /usr/lib(64)?/perl5/man(/.*)? system_u:object_r:man_t -/usr/lib(64)?/perl.*\.so -- system_u:object_r:shlib_t /usr/lib(64)?/selinux(/.*)? system_u:object_r:policy_src_t /usr/lib(64)?/emacsen-common/.* system_u:object_r:bin_t /usr/lib(64)?/.*/bin(/.*)? system_u:object_r:bin_t -/usr/lib(64)?/gconv/.*\.so -- system_u:object_r:shlib_t /usr/share/guile/g-wrapped/.*\.so -- system_u:object_r:shlib_t #
Merged.
Ended up modifying your second patch and used this:
types.fc +1 -7
@@ -333,17 +337,11 @@ # /usr/lib(64)? # /usr/lib(64)?(/.*)? system_u:object_r:lib_t -/usr/lib(64)?/lib[^/]*\.so(\.[^/]*)* -- system_u:object_r:shlib_t -/usr/lib(64)?/python.*\.so -- system_u:object_r:shlib_t -/usr/lib(64)?/.*/lib[^/]*\.so(\.[^/]*)* -- system_u:object_r:shlib_t -/usr/lib(64)?/.*/.*\.so -- system_u:object_r:shlib_t -/usr/lib(64)?/autofs/.*\.so -- system_u:object_r:shlib_t +/usr/lib(64)?/.*\.so(\.[^/]*)* -- system_u:object_r:shlib_t /usr/lib(64)?/perl5/man(/.*)? system_u:object_r:man_t -/usr/lib(64)?/perl.*\.so -- system_u:object_r:shlib_t /usr/lib(64)?/selinux(/.*)? system_u:object_r:policy_src_t /usr/lib(64)?/emacsen-common/.* system_u:object_r:bin_t /usr/lib(64)?/.*/bin(/.*)? system_u:object_r:bin_t -/usr/lib(64)?/gconv/.*\.so -- system_u:object_r:shlib_t /usr/share/guile/g-wrapped/.*\.so -- system_u:object_r:shlib_t #
Quoted 39 lines · Thomas Bleher
Quoted 16 lines · James Carter
Quoted 15 lines · Thomas Bleher
The following patch against latest CVS adds some misc policy:
types.fc: added file contexts for some kde and gnome libraries
(filenames are like/opt/kde3/lib/kde3/kcalc.so) the nVidia libs need some extra file context, toodiff -ur orig/file_contexts/types.fc mod/file_contexts/types.fc
file_contexts/types.fc 2004-09-11 14:47:06.000000000 +0200 renamed from file_contexts/types.fc 2004-09-11 14:31:47.000000000 +0200 +2
-0@@ -336,11 +340,14 @@ /usr/lib(64)?/autofs/.*\.so -- system_u:object_r:shlib_t /usr/lib(64)?/perl5/man(/.*)? system_u:object_r:man_t /usr/lib(64)?/perl.*\.so -- system_u:object_r:shlib_t +/usr/lib(64)?/(NORM|NVIDIA)_lib.*\.so(\.[^/]*)* -- system_u:object_r:shlib_t +/usr/lib(64)?/tls/NVIDIA/(NORM|NVIDIA)_lib.*\.so(\.[^/]*)* -- system_u:object_r:shlib_tQuoted 8 lines
file_contexts/types.fc 2004-09-11 14:47:06.000000000 +0200 line 350
Quoted 6 lines
file_contexts/types.fc 2004-09-11 14:47:06.000000000 +0200 renamed from file_contexts/types.fc 2004-09-11 14:31:47.000000000 +0200 +1
-0/usr/lib(64)?/selinux(/.*)? system_u:object_r:policy_src_t /usr/lib(64)?/emacsen-common/.* system_u:object_r:bin_t /usr/lib(64)?/.*/bin(/.*)? system_u:object_r:bin_t /usr/lib(64)?/gconv/.*\.so -- system_u:object_r:shlib_t /usr/share/guile/g-wrapped/.*\.so -- system_u:object_r:shlib_t +/usr/lib/[^/]*\.so -- system_u:object_r:shlib_tWhy add this? Why not /usr/lib(64)?/[^/]*\.so ?
Because I have no 64bit system and didn't think of it? ;-)
Quoted 1 line
If this rule is added, some other rules can be deleted.
True. We already have
/usr/lib(64)?/.*/.*\.so -- system_u:object_r:shlib_t
a few lines above, so we can probably just say
/usr/lib(64)?/.*\.so -- system_u:object_r:shlib_t
and be OK.Patch which does this attached.
Thomas
Signature · 7 lines
James Carter <[email protected]> National Security Agency -- 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.