patch: suse stuff
This patch corrects some issues from a previous patch. I looked over the acpi package again and noted that the /var/lib/acpi stuff was added by SuSE and is not included upstream. Thus the ifdefs.
It also corrects the labeling in a few places.
Please apply.
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/ldconfig.te +2 -1
@@ -26,6 +26,7 @@ allow ldconfig_t lib_t:lnk_file create_lnk_perms; allow ldconfig_t userdomain:fd use; +# unlink for when /etc/ld.so.cache is mislabeled allow ldconfig_t etc_t:file { getattr read unlink }; allow ldconfig_t etc_t:lnk_file read;
@@ -39,7 +40,7 @@ ifdef(`distro_suse', ` # because of libraries in /var/lib/samba/bin -allow ldconfig_t { var_lib_t bin_t }:dir search; +allow ldconfig_t { var_t var_lib_t }:dir search; ') allow ldconfig_t proc_t:file read;
domains/program/unused/apmd.te +2 -0
@@ -45,7 +45,9 @@ # acpid also has a logfile log_domain(apmd) +ifdef(`distro_suse', ` var_lib_domain(apmd) +') allow apmd_t self:file { getattr read ioctl }; allow apmd_t self:process getsession;
file_contexts/distros.fc +1 -1
@@ -37,7 +37,7 @@ ') ifdef(`distro_suse', ` -/var/lib/samba/bin(/.*)? system_u:object_r:bin_t +/var/lib/samba/bin/.+ system_u:object_r:bin_t /var/lib/samba/bin/.*\.so(\.[^/]*)* -l system_u:object_r:lib_t /usr/lib/samba/classic/.* -- system_u:object_r:bin_t /usr/lib/samba/classic/[^/]*\.so(\.[^/]*)* -- system_u:object_r:shlib_t
file_contexts/program/apache.fc +2 -2
@@ -29,14 +29,14 @@ /var/lib/httpd(/.*)? system_u:object_r:httpd_var_lib_t /var/lib/php/session(/.*)? system_u:object_r:httpd_var_run_t /etc/apache-ssl(2)?(/.*)? system_u:object_r:httpd_config_t -/usr/lib/apache-ssl(/.*)? -- system_u:object_r:httpd_exec_t +/usr/lib/apache-ssl/.+ -- system_u:object_r:httpd_exec_t /usr/sbin/apache-ssl(2)? -- system_u:object_r:httpd_exec_t /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 +/usr/share/apache2/[^/]* -- system_u:object_r:bin_t ') /var/lib/squirrelmail/prefs(/.*)? system_u:object_r:httpd_squirrelmail_t /usr/bin/htsslpass -- system_u:object_r:httpd_helper_exec_t
file_contexts/program/apmd.fc +3 -0
@@ -5,4 +5,7 @@ /var/run/apmd\.pid -- system_u:object_r:apmd_var_run_t /var/run/\.?acpid\.socket -s system_u:object_r:apmd_var_run_t /var/log/acpid -- system_u:object_r:apmd_log_t +ifdef(`distro_suse', ` /var/lib/acpi(/.*)? system_u:object_r:apmd_var_lib_t +') +
Merged.
Quoted 7 lines · Thomas Bleher
This patch corrects some issues from a previous patch. I looked over the acpi package again and noted that the
/var/lib/acpistuff was added by SuSE and is not included upstream. Thus the ifdefs.
It also corrects the labeling in a few places.
Please apply.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.