summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe MacDonald <joe_macdonald@mentor.com>2017-05-04 14:23:12 -0400
committerJoe MacDonald <joe_macdonald@mentor.com>2017-05-04 14:23:12 -0400
commit449804470ff7ed712c7ab4c6352fca3af0d4e244 (patch)
tree1a8b557d6706dfe5aeb116d2b5cb8fc2749032aa
parentdb1f0fe50d63a2253d602c41d0077e308fc78c51 (diff)
downloadmeta-selinux-449804470ff7ed712c7ab4c6352fca3af0d4e244.tar.gz
refpolicy-git: clean up fallout from stable uprev
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
-rw-r--r--recipes-security/refpolicy/refpolicy-git/poky-fc-clock.patch4
-rw-r--r--recipes-security/refpolicy/refpolicy-git/poky-fc-fix-real-path_login.patch22
-rw-r--r--recipes-security/refpolicy/refpolicy-git/poky-fc-fix-real-path_shadow.patch32
-rw-r--r--recipes-security/refpolicy/refpolicy-git/poky-fc-fstools.patch8
-rw-r--r--recipes-security/refpolicy/refpolicy-git/poky-fc-ftpwho-dir.patch2
-rw-r--r--recipes-security/refpolicy/refpolicy-git/poky-fc-mta.patch2
-rw-r--r--recipes-security/refpolicy/refpolicy-git/poky-fc-rpm.patch2
-rw-r--r--recipes-security/refpolicy/refpolicy-git/poky-fc-ssh.patch2
-rw-r--r--recipes-security/refpolicy/refpolicy-git/poky-fc-sysnetwork.patch2
-rw-r--r--recipes-security/refpolicy/refpolicy-git/poky-fc-udevd.patch14
-rw-r--r--recipes-security/refpolicy/refpolicy-git/poky-fc-update-alternatives_sysklogd.patch10
-rw-r--r--recipes-security/refpolicy/refpolicy-git/poky-fc-update-alternatives_sysvinit.patch36
-rw-r--r--recipes-security/refpolicy/refpolicy-git/poky-policy-add-rules-for-var-log-symlink.patch2
-rw-r--r--recipes-security/refpolicy/refpolicy-targeted/refpolicy-fix-optional-issue-on-sysadm-module.patch33
-rw-r--r--recipes-security/refpolicy/refpolicy-targeted/refpolicy-remove-duplicate-type_transition.patch2
-rw-r--r--recipes-security/refpolicy/refpolicy-targeted/refpolicy-unconfined_u-default-user.patch30
-rw-r--r--recipes-security/refpolicy/refpolicy_git.inc2
17 files changed, 98 insertions, 107 deletions
diff --git a/recipes-security/refpolicy/refpolicy-git/poky-fc-clock.patch b/recipes-security/refpolicy/refpolicy-git/poky-fc-clock.patch
index 628e8a3..946dcc2 100644
--- a/recipes-security/refpolicy/refpolicy-git/poky-fc-clock.patch
+++ b/recipes-security/refpolicy/refpolicy-git/poky-fc-clock.patch
@@ -10,8 +10,10 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
10 10
11--- a/policy/modules/system/clock.fc 11--- a/policy/modules/system/clock.fc
12+++ b/policy/modules/system/clock.fc 12+++ b/policy/modules/system/clock.fc
13@@ -1,3 +1,4 @@ 13@@ -1,5 +1,6 @@
14 /etc/adjtime -- gen_context(system_u:object_r:adjtime_t,s0) 14 /etc/adjtime -- gen_context(system_u:object_r:adjtime_t,s0)
15 15
16 /usr/bin/hwclock -- gen_context(system_u:object_r:hwclock_exec_t,s0)
17
16+/usr/sbin/hwclock\.util-linux -- gen_context(system_u:object_r:hwclock_exec_t,s0) 18+/usr/sbin/hwclock\.util-linux -- gen_context(system_u:object_r:hwclock_exec_t,s0)
17 /usr/sbin/hwclock -- gen_context(system_u:object_r:hwclock_exec_t,s0) 19 /usr/sbin/hwclock -- gen_context(system_u:object_r:hwclock_exec_t,s0)
diff --git a/recipes-security/refpolicy/refpolicy-git/poky-fc-fix-real-path_login.patch b/recipes-security/refpolicy/refpolicy-git/poky-fc-fix-real-path_login.patch
index fc54217..49f4960 100644
--- a/recipes-security/refpolicy/refpolicy-git/poky-fc-fix-real-path_login.patch
+++ b/recipes-security/refpolicy/refpolicy-git/poky-fc-fix-real-path_login.patch
@@ -10,7 +10,7 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
10 10
11--- a/policy/modules/system/authlogin.fc 11--- a/policy/modules/system/authlogin.fc
12+++ b/policy/modules/system/authlogin.fc 12+++ b/policy/modules/system/authlogin.fc
13@@ -3,20 +3,19 @@ 13@@ -3,10 +3,12 @@
14 /etc/gshadow.* -- gen_context(system_u:object_r:shadow_t,s0) 14 /etc/gshadow.* -- gen_context(system_u:object_r:shadow_t,s0)
15 /etc/passwd\.lock -- gen_context(system_u:object_r:shadow_t,s0) 15 /etc/passwd\.lock -- gen_context(system_u:object_r:shadow_t,s0)
16 /etc/shadow.* -- gen_context(system_u:object_r:shadow_t,s0) 16 /etc/shadow.* -- gen_context(system_u:object_r:shadow_t,s0)
@@ -18,18 +18,8 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
18 /usr/bin/login -- gen_context(system_u:object_r:login_exec_t,s0) 18 /usr/bin/login -- gen_context(system_u:object_r:login_exec_t,s0)
19+/usr/bin/login\.shadow -- gen_context(system_u:object_r:login_exec_t,s0) 19+/usr/bin/login\.shadow -- gen_context(system_u:object_r:login_exec_t,s0)
20+/usr/bin/login\.tinylogin -- gen_context(system_u:object_r:login_exec_t,s0) 20+/usr/bin/login\.tinylogin -- gen_context(system_u:object_r:login_exec_t,s0)
21 21 /usr/bin/pam_console_apply -- gen_context(system_u:object_r:pam_console_exec_t,s0)
22 /usr/kerberos/sbin/login\.krb5 -- gen_context(system_u:object_r:login_exec_t,s0) 22 /usr/bin/pam_timestamp_check -- gen_context(system_u:object_r:pam_exec_t,s0)
23 23 /usr/bin/unix_chkpwd -- gen_context(system_u:object_r:chkpwd_exec_t,s0)
24 /usr/lib/utempter/utempter -- gen_context(system_u:object_r:utempter_exec_t,s0) 24 /usr/bin/unix_update -- gen_context(system_u:object_r:updpwd_exec_t,s0)
25 25 /usr/bin/unix_verify -- gen_context(system_u:object_r:chkpwd_exec_t,s0)
26 /usr/sbin/pam_console_apply -- gen_context(system_u:object_r:pam_console_exec_t,s0)
27 /usr/sbin/pam_timestamp_check -- gen_context(system_u:object_r:pam_exec_t,s0)
28-/usr/sbin/unix_chkpwd -- gen_context(system_u:object_r:chkpwd_exec_t,s0)
29-/usr/sbin/unix_update -- gen_context(system_u:object_r:updpwd_exec_t,s0)
30-/usr/sbin/unix_verify -- gen_context(system_u:object_r:chkpwd_exec_t,s0)
31 /usr/sbin/utempter -- gen_context(system_u:object_r:utempter_exec_t,s0)
32 /usr/sbin/validate -- gen_context(system_u:object_r:chkpwd_exec_t,s0)
33 ifdef(`distro_suse', `
34 /usr/sbin/unix2_chkpwd -- gen_context(system_u:object_r:chkpwd_exec_t,s0)
35 ')
diff --git a/recipes-security/refpolicy/refpolicy-git/poky-fc-fix-real-path_shadow.patch b/recipes-security/refpolicy/refpolicy-git/poky-fc-fix-real-path_shadow.patch
index a15a776..b441257 100644
--- a/recipes-security/refpolicy/refpolicy-git/poky-fc-fix-real-path_shadow.patch
+++ b/recipes-security/refpolicy/refpolicy-git/poky-fc-fix-real-path_shadow.patch
@@ -10,7 +10,7 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
10 10
11--- a/policy/modules/admin/usermanage.fc 11--- a/policy/modules/admin/usermanage.fc
12+++ b/policy/modules/admin/usermanage.fc 12+++ b/policy/modules/admin/usermanage.fc
13@@ -2,15 +2,21 @@ ifdef(`distro_debian',` 13@@ -2,20 +2,24 @@ ifdef(`distro_debian',`
14 /etc/cron\.daily/cracklib-runtime -- gen_context(system_u:object_r:crack_exec_t,s0) 14 /etc/cron\.daily/cracklib-runtime -- gen_context(system_u:object_r:crack_exec_t,s0)
15 ') 15 ')
16 16
@@ -19,16 +19,32 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
19+/usr/bin/chfn\.shadow -- gen_context(system_u:object_r:chfn_exec_t,s0) 19+/usr/bin/chfn\.shadow -- gen_context(system_u:object_r:chfn_exec_t,s0)
20 /usr/bin/chsh -- gen_context(system_u:object_r:chfn_exec_t,s0) 20 /usr/bin/chsh -- gen_context(system_u:object_r:chfn_exec_t,s0)
21+/usr/bin/chsh\.shadow -- gen_context(system_u:object_r:chfn_exec_t,s0) 21+/usr/bin/chsh\.shadow -- gen_context(system_u:object_r:chfn_exec_t,s0)
22 /usr/bin/crack_[a-z]* -- gen_context(system_u:object_r:crack_exec_t,s0)
23 /usr/bin/cracklib-[a-z]* -- gen_context(system_u:object_r:crack_exec_t,s0)
22 /usr/bin/gpasswd -- gen_context(system_u:object_r:groupadd_exec_t,s0) 24 /usr/bin/gpasswd -- gen_context(system_u:object_r:groupadd_exec_t,s0)
25 /usr/bin/groupadd -- gen_context(system_u:object_r:groupadd_exec_t,s0)
26 /usr/bin/groupdel -- gen_context(system_u:object_r:groupadd_exec_t,s0)
27 /usr/bin/groupmod -- gen_context(system_u:object_r:groupadd_exec_t,s0)
28 /usr/bin/grpconv -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
29 /usr/bin/grpunconv -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
23 /usr/bin/passwd -- gen_context(system_u:object_r:passwd_exec_t,s0) 30 /usr/bin/passwd -- gen_context(system_u:object_r:passwd_exec_t,s0)
24+/usr/bin/passwd\.shadow -- gen_context(system_u:object_r:passwd_exec_t,s0) 31+/usr/bin/passwd\.shadow -- gen_context(system_u:object_r:passwd_exec_t,s0)
25+/usr/bin/passwd\.tinylogin -- gen_context(system_u:object_r:passwd_exec_t,s0) 32+/usr/bin/passwd\.tinylogin -- gen_context(system_u:object_r:passwd_exec_t,s0)
26 /usr/bin/vigr -- gen_context(system_u:object_r:admin_passwd_exec_t,s0) 33 /usr/bin/pwconv -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
27+/sbin/vigr\.shadow -- gen_context(system_u:object_r:admin_passwd_exec_t,s0) 34 /usr/bin/pwunconv -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
28 /usr/bin/vipw -- gen_context(system_u:object_r:admin_passwd_exec_t,s0) 35 /usr/bin/useradd -- gen_context(system_u:object_r:useradd_exec_t,s0)
29+/sbin/vipw\.shadow -- gen_context(system_u:object_r:admin_passwd_exec_t,s0) 36 /usr/bin/userdel -- gen_context(system_u:object_r:useradd_exec_t,s0)
37 /usr/bin/usermod -- gen_context(system_u:object_r:useradd_exec_t,s0)
38@@ -36,10 +40,12 @@ ifdef(`distro_debian',`
39 /usr/sbin/pwunconv -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
40 /usr/sbin/useradd -- gen_context(system_u:object_r:useradd_exec_t,s0)
41 /usr/sbin/userdel -- gen_context(system_u:object_r:useradd_exec_t,s0)
42 /usr/sbin/usermod -- gen_context(system_u:object_r:useradd_exec_t,s0)
43 /usr/sbin/vigr -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
44+/usr/sbin/vigr\.shadow -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
45 /usr/sbin/vipw -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
46+/usr/sbin/vipw\.shadow -- gen_context(system_u:object_r:admin_passwd_exec_t,s0)
30 47
31 /usr/lib/cracklib_dict.* -- gen_context(system_u:object_r:crack_db_t,s0) 48 /usr/share/cracklib(/.*)? gen_context(system_u:object_r:crack_db_t,s0)
32 49
33 /usr/sbin/crack_[a-z]* -- gen_context(system_u:object_r:crack_exec_t,s0) 50 /var/cache/cracklib(/.*)? gen_context(system_u:object_r:crack_db_t,s0)
34 /usr/sbin/cracklib-[a-z]* -- gen_context(system_u:object_r:crack_exec_t,s0)
diff --git a/recipes-security/refpolicy/refpolicy-git/poky-fc-fstools.patch b/recipes-security/refpolicy/refpolicy-git/poky-fc-fstools.patch
index cf07b23..d887e96 100644
--- a/recipes-security/refpolicy/refpolicy-git/poky-fc-fstools.patch
+++ b/recipes-security/refpolicy/refpolicy-git/poky-fc-fstools.patch
@@ -14,8 +14,8 @@ Signed-off-by: Shrikant Bobade <shrikant_bobade@mentor.com>
14 14
15--- a/policy/modules/system/fstools.fc 15--- a/policy/modules/system/fstools.fc
16+++ b/policy/modules/system/fstools.fc 16+++ b/policy/modules/system/fstools.fc
17@@ -4,10 +4,11 @@ 17@@ -55,10 +55,11 @@
18 /usr/bin/syslinux -- gen_context(system_u:object_r:fsadm_exec_t,s0) 18 /usr/bin/ztest -- gen_context(system_u:object_r:fsadm_exec_t,s0)
19 19
20 /usr/sbin/addpart -- gen_context(system_u:object_r:fsadm_exec_t,s0) 20 /usr/sbin/addpart -- gen_context(system_u:object_r:fsadm_exec_t,s0)
21 /usr/sbin/badblocks -- gen_context(system_u:object_r:fsadm_exec_t,s0) 21 /usr/sbin/badblocks -- gen_context(system_u:object_r:fsadm_exec_t,s0)
@@ -26,7 +26,7 @@ Signed-off-by: Shrikant Bobade <shrikant_bobade@mentor.com>
26 /usr/sbin/clubufflush -- gen_context(system_u:object_r:fsadm_exec_t,s0) 26 /usr/sbin/clubufflush -- gen_context(system_u:object_r:fsadm_exec_t,s0)
27 /usr/sbin/delpart -- gen_context(system_u:object_r:fsadm_exec_t,s0) 27 /usr/sbin/delpart -- gen_context(system_u:object_r:fsadm_exec_t,s0)
28 /usr/sbin/dosfsck -- gen_context(system_u:object_r:fsadm_exec_t,s0) 28 /usr/sbin/dosfsck -- gen_context(system_u:object_r:fsadm_exec_t,s0)
29@@ -17,14 +18,16 @@ 29@@ -68,14 +69,16 @@
30 /usr/sbin/e4fsck -- gen_context(system_u:object_r:fsadm_exec_t,s0) 30 /usr/sbin/e4fsck -- gen_context(system_u:object_r:fsadm_exec_t,s0)
31 /usr/sbin/e2label -- gen_context(system_u:object_r:fsadm_exec_t,s0) 31 /usr/sbin/e2label -- gen_context(system_u:object_r:fsadm_exec_t,s0)
32 /usr/sbin/efibootmgr -- gen_context(system_u:object_r:fsadm_exec_t,s0) 32 /usr/sbin/efibootmgr -- gen_context(system_u:object_r:fsadm_exec_t,s0)
@@ -43,7 +43,7 @@ Signed-off-by: Shrikant Bobade <shrikant_bobade@mentor.com>
43 /usr/sbin/losetup.* -- gen_context(system_u:object_r:fsadm_exec_t,s0) 43 /usr/sbin/losetup.* -- gen_context(system_u:object_r:fsadm_exec_t,s0)
44 /usr/sbin/lsraid -- gen_context(system_u:object_r:fsadm_exec_t,s0) 44 /usr/sbin/lsraid -- gen_context(system_u:object_r:fsadm_exec_t,s0)
45 /usr/sbin/make_reiser4 -- gen_context(system_u:object_r:fsadm_exec_t,s0) 45 /usr/sbin/make_reiser4 -- gen_context(system_u:object_r:fsadm_exec_t,s0)
46@@ -33,21 +36,24 @@ 46@@ -84,21 +87,24 @@
47 /usr/sbin/mke4fs -- gen_context(system_u:object_r:fsadm_exec_t,s0) 47 /usr/sbin/mke4fs -- gen_context(system_u:object_r:fsadm_exec_t,s0)
48 /usr/sbin/mkfs.* -- gen_context(system_u:object_r:fsadm_exec_t,s0) 48 /usr/sbin/mkfs.* -- gen_context(system_u:object_r:fsadm_exec_t,s0)
49 /usr/sbin/mkraid -- gen_context(system_u:object_r:fsadm_exec_t,s0) 49 /usr/sbin/mkraid -- gen_context(system_u:object_r:fsadm_exec_t,s0)
diff --git a/recipes-security/refpolicy/refpolicy-git/poky-fc-ftpwho-dir.patch b/recipes-security/refpolicy/refpolicy-git/poky-fc-ftpwho-dir.patch
index d58de6a..5ed7eae 100644
--- a/recipes-security/refpolicy/refpolicy-git/poky-fc-ftpwho-dir.patch
+++ b/recipes-security/refpolicy/refpolicy-git/poky-fc-ftpwho-dir.patch
@@ -12,7 +12,7 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
12 12
13--- a/policy/modules/contrib/ftp.fc 13--- a/policy/modules/contrib/ftp.fc
14+++ b/policy/modules/contrib/ftp.fc 14+++ b/policy/modules/contrib/ftp.fc
15@@ -10,11 +10,11 @@ 15@@ -15,11 +15,11 @@
16 /usr/kerberos/sbin/ftpd -- gen_context(system_u:object_r:ftpd_exec_t,s0) 16 /usr/kerberos/sbin/ftpd -- gen_context(system_u:object_r:ftpd_exec_t,s0)
17 17
18 /usr/lib/systemd/system/proftpd.*\.service -- gen_context(system_u:object_r:ftpd_unit_t,s0) 18 /usr/lib/systemd/system/proftpd.*\.service -- gen_context(system_u:object_r:ftpd_unit_t,s0)
diff --git a/recipes-security/refpolicy/refpolicy-git/poky-fc-mta.patch b/recipes-security/refpolicy/refpolicy-git/poky-fc-mta.patch
index 72b559f..b3e2846 100644
--- a/recipes-security/refpolicy/refpolicy-git/poky-fc-mta.patch
+++ b/recipes-security/refpolicy/refpolicy-git/poky-fc-mta.patch
@@ -13,7 +13,7 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
13 13
14--- a/policy/modules/contrib/mta.fc 14--- a/policy/modules/contrib/mta.fc
15+++ b/policy/modules/contrib/mta.fc 15+++ b/policy/modules/contrib/mta.fc
16@@ -19,10 +19,11 @@ HOME_DIR/\.maildir(/.*)? gen_context(sys 16@@ -23,10 +23,11 @@ HOME_DIR/\.maildir(/.*)? gen_context(sys
17 /usr/lib/courier/bin/sendmail -- gen_context(system_u:object_r:sendmail_exec_t,s0) 17 /usr/lib/courier/bin/sendmail -- gen_context(system_u:object_r:sendmail_exec_t,s0)
18 18
19 /usr/sbin/rmail -- gen_context(system_u:object_r:sendmail_exec_t,s0) 19 /usr/sbin/rmail -- gen_context(system_u:object_r:sendmail_exec_t,s0)
diff --git a/recipes-security/refpolicy/refpolicy-git/poky-fc-rpm.patch b/recipes-security/refpolicy/refpolicy-git/poky-fc-rpm.patch
index 922afa9..3cd766d 100644
--- a/recipes-security/refpolicy/refpolicy-git/poky-fc-rpm.patch
+++ b/recipes-security/refpolicy/refpolicy-git/poky-fc-rpm.patch
@@ -13,7 +13,7 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
13 13
14--- a/policy/modules/contrib/rpm.fc 14--- a/policy/modules/contrib/rpm.fc
15+++ b/policy/modules/contrib/rpm.fc 15+++ b/policy/modules/contrib/rpm.fc
16@@ -57,6 +57,7 @@ ifdef(`distro_redhat',` 16@@ -67,6 +67,7 @@ ifdef(`distro_redhat',`
17 /run/yum.* -- gen_context(system_u:object_r:rpm_var_run_t,s0) 17 /run/yum.* -- gen_context(system_u:object_r:rpm_var_run_t,s0)
18 /run/PackageKit(/.*)? gen_context(system_u:object_r:rpm_var_run_t,s0) 18 /run/PackageKit(/.*)? gen_context(system_u:object_r:rpm_var_run_t,s0)
19 19
diff --git a/recipes-security/refpolicy/refpolicy-git/poky-fc-ssh.patch b/recipes-security/refpolicy/refpolicy-git/poky-fc-ssh.patch
index 648b21b..f01e5aa 100644
--- a/recipes-security/refpolicy/refpolicy-git/poky-fc-ssh.patch
+++ b/recipes-security/refpolicy/refpolicy-git/poky-fc-ssh.patch
@@ -19,6 +19,6 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
19+/usr/bin/ssh\.openssh -- gen_context(system_u:object_r:ssh_exec_t,s0) 19+/usr/bin/ssh\.openssh -- gen_context(system_u:object_r:ssh_exec_t,s0)
20 /usr/bin/ssh-agent -- gen_context(system_u:object_r:ssh_agent_exec_t,s0) 20 /usr/bin/ssh-agent -- gen_context(system_u:object_r:ssh_agent_exec_t,s0)
21 /usr/bin/ssh-keygen -- gen_context(system_u:object_r:ssh_keygen_exec_t,s0) 21 /usr/bin/ssh-keygen -- gen_context(system_u:object_r:ssh_keygen_exec_t,s0)
22 /usr/bin/sshd -- gen_context(system_u:object_r:sshd_exec_t,s0)
22 23
23 /usr/lib/openssh/ssh-keysign -- gen_context(system_u:object_r:ssh_keysign_exec_t,s0) 24 /usr/lib/openssh/ssh-keysign -- gen_context(system_u:object_r:ssh_keysign_exec_t,s0)
24 /usr/lib/ssh/ssh-keysign -- gen_context(system_u:object_r:ssh_keysign_exec_t,s0)
diff --git a/recipes-security/refpolicy/refpolicy-git/poky-fc-sysnetwork.patch b/recipes-security/refpolicy/refpolicy-git/poky-fc-sysnetwork.patch
index 0b148b5..88c8c45 100644
--- a/recipes-security/refpolicy/refpolicy-git/poky-fc-sysnetwork.patch
+++ b/recipes-security/refpolicy/refpolicy-git/poky-fc-sysnetwork.patch
@@ -14,7 +14,7 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
14 14
15--- a/policy/modules/system/sysnetwork.fc 15--- a/policy/modules/system/sysnetwork.fc
16+++ b/policy/modules/system/sysnetwork.fc 16+++ b/policy/modules/system/sysnetwork.fc
17@@ -41,17 +41,20 @@ ifdef(`distro_redhat',` 17@@ -54,17 +54,20 @@ ifdef(`distro_redhat',`
18 /usr/sbin/dhcdbd -- gen_context(system_u:object_r:dhcpc_exec_t,s0) 18 /usr/sbin/dhcdbd -- gen_context(system_u:object_r:dhcpc_exec_t,s0)
19 /usr/sbin/dhcp6c -- gen_context(system_u:object_r:dhcpc_exec_t,s0) 19 /usr/sbin/dhcp6c -- gen_context(system_u:object_r:dhcpc_exec_t,s0)
20 /usr/sbin/dhcpcd -- gen_context(system_u:object_r:dhcpc_exec_t,s0) 20 /usr/sbin/dhcpcd -- gen_context(system_u:object_r:dhcpc_exec_t,s0)
diff --git a/recipes-security/refpolicy/refpolicy-git/poky-fc-udevd.patch b/recipes-security/refpolicy/refpolicy-git/poky-fc-udevd.patch
index 2271a05..f53b551 100644
--- a/recipes-security/refpolicy/refpolicy-git/poky-fc-udevd.patch
+++ b/recipes-security/refpolicy/refpolicy-git/poky-fc-udevd.patch
@@ -13,19 +13,7 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
13 13
14--- a/policy/modules/system/udev.fc 14--- a/policy/modules/system/udev.fc
15+++ b/policy/modules/system/udev.fc 15+++ b/policy/modules/system/udev.fc
16@@ -8,10 +8,11 @@ 16@@ -32,10 +32,11 @@ ifdef(`distro_redhat',`
17
18 /etc/udev/rules.d(/.*)? gen_context(system_u:object_r:udev_rules_t,s0)
19 /etc/udev/scripts/.+ -- gen_context(system_u:object_r:udev_helper_exec_t,s0)
20
21 /usr/bin/udevinfo -- gen_context(system_u:object_r:udev_exec_t,s0)
22+/usr/bin/udevadm -- gen_context(system_u:object_r:udev_exec_t,s0)
23
24 ifdef(`distro_debian',`
25 /usr/bin/udevadm -- gen_context(system_u:object_r:udev_exec_t,s0)
26 ')
27
28@@ -30,10 +31,11 @@ ifdef(`distro_redhat',`
29 /usr/sbin/start_udev -- gen_context(system_u:object_r:udev_exec_t,s0) 17 /usr/sbin/start_udev -- gen_context(system_u:object_r:udev_exec_t,s0)
30 ') 18 ')
31 19
diff --git a/recipes-security/refpolicy/refpolicy-git/poky-fc-update-alternatives_sysklogd.patch b/recipes-security/refpolicy/refpolicy-git/poky-fc-update-alternatives_sysklogd.patch
index dfa67a6..77f7fad 100644
--- a/recipes-security/refpolicy/refpolicy-git/poky-fc-update-alternatives_sysklogd.patch
+++ b/recipes-security/refpolicy/refpolicy-git/poky-fc-update-alternatives_sysklogd.patch
@@ -28,11 +28,11 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
28 /etc/rc\.d/init\.d/rsyslog -- gen_context(system_u:object_r:syslogd_initrc_exec_t,s0) 28 /etc/rc\.d/init\.d/rsyslog -- gen_context(system_u:object_r:syslogd_initrc_exec_t,s0)
29+/etc/rc\.d/init\.d/syslog\.sysklogd -- gen_context(system_u:object_r:syslogd_initrc_exec_t,s0) 29+/etc/rc\.d/init\.d/syslog\.sysklogd -- gen_context(system_u:object_r:syslogd_initrc_exec_t,s0)
30 30
31 /usr/lib/systemd/system/auditd.* -- gen_context(system_u:object_r:auditd_unit_t,s0) 31 /usr/bin/audispd -- gen_context(system_u:object_r:audisp_exec_t,s0)
32 /usr/lib/systemd/system/[^/]*systemd-journal.* -- gen_context(system_u:object_r:syslogd_unit_t,s0) 32 /usr/bin/audisp-remote -- gen_context(system_u:object_r:audisp_remote_exec_t,s0)
33 /usr/lib/systemd/system/rsyslog.*\.service -- gen_context(system_u:object_r:syslogd_unit_t,s0) 33 /usr/bin/auditctl -- gen_context(system_u:object_r:auditctl_exec_t,s0)
34 /usr/lib/systemd/systemd-journald -- gen_context(system_u:object_r:syslogd_exec_t,s0) 34 /usr/bin/auditd -- gen_context(system_u:object_r:auditd_exec_t,s0)
35@@ -15,14 +17,16 @@ 35@@ -27,14 +29,16 @@
36 /usr/sbin/audispd -- gen_context(system_u:object_r:audisp_exec_t,s0) 36 /usr/sbin/audispd -- gen_context(system_u:object_r:audisp_exec_t,s0)
37 /usr/sbin/audisp-remote -- gen_context(system_u:object_r:audisp_remote_exec_t,s0) 37 /usr/sbin/audisp-remote -- gen_context(system_u:object_r:audisp_remote_exec_t,s0)
38 /usr/sbin/auditctl -- gen_context(system_u:object_r:auditctl_exec_t,s0) 38 /usr/sbin/auditctl -- gen_context(system_u:object_r:auditctl_exec_t,s0)
diff --git a/recipes-security/refpolicy/refpolicy-git/poky-fc-update-alternatives_sysvinit.patch b/recipes-security/refpolicy/refpolicy-git/poky-fc-update-alternatives_sysvinit.patch
index 81fe141..3f6a5c8 100644
--- a/recipes-security/refpolicy/refpolicy-git/poky-fc-update-alternatives_sysvinit.patch
+++ b/recipes-security/refpolicy/refpolicy-git/poky-fc-update-alternatives_sysvinit.patch
@@ -13,34 +13,36 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
13 policy/modules/system/init.fc | 1 + 13 policy/modules/system/init.fc | 1 +
14 3 files changed, 3 insertions(+) 14 3 files changed, 3 insertions(+)
15 15
16Index: refpolicy/policy/modules/contrib/shutdown.fc 16--- a/policy/modules/contrib/shutdown.fc
17=================================================================== 17+++ b/policy/modules/contrib/shutdown.fc
18--- refpolicy.orig/policy/modules/contrib/shutdown.fc 18@@ -3,7 +3,8 @@
19+++ refpolicy/policy/modules/contrib/shutdown.fc 19 /usr/bin/shutdown -- gen_context(system_u:object_r:shutdown_exec_t,s0)
20@@ -3,5 +3,6 @@ 20
21 /usr/lib/upstart/shutdown -- gen_context(system_u:object_r:shutdown_exec_t,s0) 21 /usr/lib/upstart/shutdown -- gen_context(system_u:object_r:shutdown_exec_t,s0)
22 22
23 /usr/sbin/shutdown -- gen_context(system_u:object_r:shutdown_exec_t,s0) 23 /usr/sbin/shutdown -- gen_context(system_u:object_r:shutdown_exec_t,s0)
24+/usr/sbin/shutdown\.sysvinit -- gen_context(system_u:object_r:shutdown_exec_t,s0) 24+/usr/sbin/shutdown\.sysvinit -- gen_context(system_u:object_r:shutdown_exec_t,s0)
25 25
26 /run/shutdown\.pid -- gen_context(system_u:object_r:shutdown_var_run_t,s0) 26 /run/shutdown\.pid -- gen_context(system_u:object_r:shutdown_var_run_t,s0)
27Index: refpolicy/policy/modules/kernel/corecommands.fc 27--- a/policy/modules/kernel/corecommands.fc
28=================================================================== 28+++ b/policy/modules/kernel/corecommands.fc
29--- refpolicy.orig/policy/modules/kernel/corecommands.fc 29@@ -144,10 +144,11 @@ ifdef(`distro_gentoo',`
30+++ refpolicy/policy/modules/kernel/corecommands.fc 30 /usr/bin/insmod_ksymoops_clean -- gen_context(system_u:object_r:bin_t,s0)
31@@ -144,6 +144,7 @@ ifdef(`distro_gentoo',`
32 /usr/bin/ksh.* -- gen_context(system_u:object_r:shell_exec_t,s0) 31 /usr/bin/ksh.* -- gen_context(system_u:object_r:shell_exec_t,s0)
32 /usr/bin/mkfs\.cramfs -- gen_context(system_u:object_r:bin_t,s0)
33 /usr/bin/mksh -- gen_context(system_u:object_r:shell_exec_t,s0) 33 /usr/bin/mksh -- gen_context(system_u:object_r:shell_exec_t,s0)
34 /usr/bin/mountpoint -- gen_context(system_u:object_r:bin_t,s0) 34 /usr/bin/mountpoint -- gen_context(system_u:object_r:bin_t,s0)
35+/usr/bin/mountpoint\.sysvinit -- gen_context(system_u:object_r:bin_t,s0) 35+/usr/bin/mountpoint\.sysvinit -- gen_context(system_u:object_r:bin_t,s0)
36 /usr/bin/nologin -- gen_context(system_u:object_r:shell_exec_t,s0)
36 /usr/bin/sash -- gen_context(system_u:object_r:shell_exec_t,s0) 37 /usr/bin/sash -- gen_context(system_u:object_r:shell_exec_t,s0)
38 /usr/bin/sesh -- gen_context(system_u:object_r:shell_exec_t,s0)
37 /usr/bin/scponly -- gen_context(system_u:object_r:shell_exec_t,s0) 39 /usr/bin/scponly -- gen_context(system_u:object_r:shell_exec_t,s0)
38 /usr/bin/tcsh -- gen_context(system_u:object_r:shell_exec_t,s0) 40 /usr/bin/scponlyc -- gen_context(system_u:object_r:shell_exec_t,s0)
39Index: refpolicy/policy/modules/system/init.fc 41--- a/policy/modules/system/init.fc
40=================================================================== 42+++ b/policy/modules/system/init.fc
41--- refpolicy.orig/policy/modules/system/init.fc 43@@ -40,10 +40,11 @@ ifdef(`distro_gentoo', `
42+++ refpolicy/policy/modules/system/init.fc 44
43@@ -39,6 +39,7 @@ ifdef(`distro_gentoo', ` 45 /usr/libexec/dcc/start-.* -- gen_context(system_u:object_r:initrc_exec_t,s0)
44 /usr/libexec/dcc/stop-.* -- gen_context(system_u:object_r:initrc_exec_t,s0) 46 /usr/libexec/dcc/stop-.* -- gen_context(system_u:object_r:initrc_exec_t,s0)
45 47
46 /usr/sbin/init(ng)? -- gen_context(system_u:object_r:init_exec_t,s0) 48 /usr/sbin/init(ng)? -- gen_context(system_u:object_r:init_exec_t,s0)
@@ -48,3 +50,5 @@ Index: refpolicy/policy/modules/system/init.fc
48 /usr/sbin/open_init_pty -- gen_context(system_u:object_r:initrc_exec_t,s0) 50 /usr/sbin/open_init_pty -- gen_context(system_u:object_r:initrc_exec_t,s0)
49 /usr/sbin/upstart -- gen_context(system_u:object_r:init_exec_t,s0) 51 /usr/sbin/upstart -- gen_context(system_u:object_r:init_exec_t,s0)
50 52
53 ifdef(`distro_gentoo', `
54 /usr/sbin/rc -- gen_context(system_u:object_r:rc_exec_t,s0)
diff --git a/recipes-security/refpolicy/refpolicy-git/poky-policy-add-rules-for-var-log-symlink.patch b/recipes-security/refpolicy/refpolicy-git/poky-policy-add-rules-for-var-log-symlink.patch
index 19342f5..75a5fa2 100644
--- a/recipes-security/refpolicy/refpolicy-git/poky-policy-add-rules-for-var-log-symlink.patch
+++ b/recipes-security/refpolicy/refpolicy-git/poky-policy-add-rules-for-var-log-symlink.patch
@@ -18,7 +18,7 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
18 18
19--- a/policy/modules/system/logging.fc 19--- a/policy/modules/system/logging.fc
20+++ b/policy/modules/system/logging.fc 20+++ b/policy/modules/system/logging.fc
21@@ -39,10 +39,11 @@ ifdef(`distro_suse', ` 21@@ -51,10 +51,11 @@ ifdef(`distro_suse', `
22 22
23 /var/axfrdns/log/main(/.*)? gen_context(system_u:object_r:var_log_t,s0) 23 /var/axfrdns/log/main(/.*)? gen_context(system_u:object_r:var_log_t,s0)
24 /var/dnscache/log/main(/.*)? gen_context(system_u:object_r:var_log_t,s0) 24 /var/dnscache/log/main(/.*)? gen_context(system_u:object_r:var_log_t,s0)
diff --git a/recipes-security/refpolicy/refpolicy-targeted/refpolicy-fix-optional-issue-on-sysadm-module.patch b/recipes-security/refpolicy/refpolicy-targeted/refpolicy-fix-optional-issue-on-sysadm-module.patch
index 3a8a95e..b33e84b 100644
--- a/recipes-security/refpolicy/refpolicy-targeted/refpolicy-fix-optional-issue-on-sysadm-module.patch
+++ b/recipes-security/refpolicy/refpolicy-targeted/refpolicy-fix-optional-issue-on-sysadm-module.patch
@@ -19,10 +19,10 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
19 19
20--- a/policy/modules/system/init.te 20--- a/policy/modules/system/init.te
21+++ b/policy/modules/system/init.te 21+++ b/policy/modules/system/init.te
22@@ -300,16 +300,18 @@ ifdef(`init_systemd',` 22@@ -344,17 +344,19 @@ ifdef(`init_systemd',`
23 23
24 optional_policy(` 24 optional_policy(`
25 modutils_domtrans_insmod(init_t) 25 modutils_domtrans(init_t)
26 ') 26 ')
27 ',` 27 ',`
28- tunable_policy(`init_upstart',` 28- tunable_policy(`init_upstart',`
@@ -30,32 +30,25 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
30- ',` 30- ',`
31- # Run the shell in the sysadm role for single-user mode. 31- # Run the shell in the sysadm role for single-user mode.
32- # causes problems with upstart 32- # causes problems with upstart
33- sysadm_shell_domtrans(init_t) 33- ifndef(`distro_debian',`
34- sysadm_shell_domtrans(init_t)
34+ optional_policy(` 35+ optional_policy(`
35+ tunable_policy(`init_upstart',` 36+ tunable_policy(`init_upstart',`
36+ corecmd_shell_domtrans(init_t, initrc_t) 37+ corecmd_shell_domtrans(init_t, initrc_t)
37+ ',` 38+ ',`
38+ # Run the shell in the sysadm role for single-user mode. 39+ # Run the shell in the sysadm role for single-user mode.
39+ # causes problems with upstart 40+ # causes problems with upstart
40+ sysadm_shell_domtrans(init_t) 41+ ifndef(`distro_debian',`
41+ ') 42+ sysadm_shell_domtrans(init_t)
43+ ')
44 ')
42 ') 45 ')
43 ') 46 ')
44 47
45 ifdef(`distro_debian',` 48 ifdef(`distro_debian',`
46 fs_tmpfs_filetrans(init_t, initctl_t, fifo_file, "initctl")
47@@ -1109,6 +1111,6 @@ optional_policy(`
48 ')
49
50 # systemd related allow rules
51 allow kernel_t init_t:process dyntransition;
52 allow devpts_t device_t:filesystem associate;
53-allow init_t self:capability2 block_suspend;
54\ No newline at end of file
55+allow init_t self:capability2 block_suspend;
56--- a/policy/modules/system/locallogin.te 49--- a/policy/modules/system/locallogin.te
57+++ b/policy/modules/system/locallogin.te 50+++ b/policy/modules/system/locallogin.te
58@@ -244,11 +244,13 @@ seutil_read_default_contexts(sulogin_t) 51@@ -260,11 +260,13 @@ seutil_read_default_contexts(sulogin_t)
59 userdom_use_unpriv_users_fds(sulogin_t) 52 userdom_use_unpriv_users_fds(sulogin_t)
60 53
61 userdom_search_user_home_dirs(sulogin_t) 54 userdom_search_user_home_dirs(sulogin_t)
@@ -66,7 +59,7 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
66+ sysadm_shell_domtrans(sulogin_t) 59+ sysadm_shell_domtrans(sulogin_t)
67+') 60+')
68 61
69 # suse and debian do not use pam with sulogin... 62 # by default, sulogin does not use pam...
70 ifdef(`distro_suse', `define(`sulogin_no_pam')') 63 # sulogin_pam might need to be defined otherwise
71 ifdef(`distro_debian', `define(`sulogin_no_pam')') 64 ifdef(`sulogin_pam', `
72 65 selinux_get_fs_mount(sulogin_t)
diff --git a/recipes-security/refpolicy/refpolicy-targeted/refpolicy-remove-duplicate-type_transition.patch b/recipes-security/refpolicy/refpolicy-targeted/refpolicy-remove-duplicate-type_transition.patch
index 1dc9911..17a8199 100644
--- a/recipes-security/refpolicy/refpolicy-targeted/refpolicy-remove-duplicate-type_transition.patch
+++ b/recipes-security/refpolicy/refpolicy-targeted/refpolicy-remove-duplicate-type_transition.patch
@@ -25,7 +25,7 @@ Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
25 25
26--- a/policy/modules/system/init.if 26--- a/policy/modules/system/init.if
27+++ b/policy/modules/system/init.if 27+++ b/policy/modules/system/init.if
28@@ -1268,16 +1268,16 @@ interface(`init_spec_domtrans_script',` 28@@ -1430,16 +1430,16 @@ interface(`init_spec_domtrans_script',`
29 ## </summary> 29 ## </summary>
30 ## </param> 30 ## </param>
31 # 31 #
diff --git a/recipes-security/refpolicy/refpolicy-targeted/refpolicy-unconfined_u-default-user.patch b/recipes-security/refpolicy/refpolicy-targeted/refpolicy-unconfined_u-default-user.patch
index f28ab74..29d3e2d 100644
--- a/recipes-security/refpolicy/refpolicy-targeted/refpolicy-unconfined_u-default-user.patch
+++ b/recipes-security/refpolicy/refpolicy-targeted/refpolicy-unconfined_u-default-user.patch
@@ -30,21 +30,21 @@ Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
30+ 30+
31--- a/policy/modules/roles/sysadm.te 31--- a/policy/modules/roles/sysadm.te
32+++ b/policy/modules/roles/sysadm.te 32+++ b/policy/modules/roles/sysadm.te
33@@ -41,10 +41,11 @@ init_reload(sysadm_t) 33@@ -37,10 +37,11 @@ ubac_process_exempt(sysadm_t)
34 init_reboot_system(sysadm_t) 34 ubac_file_exempt(sysadm_t)
35 init_shutdown_system(sysadm_t) 35 ubac_fd_exempt(sysadm_t)
36 init_start_generic_units(sysadm_t) 36
37 init_stop_generic_units(sysadm_t) 37 init_exec(sysadm_t)
38 init_reload_generic_units(sysadm_t) 38 init_admin(sysadm_t)
39+init_script_role_transition(sysadm_r) 39+init_script_role_transition(sysadm_r)
40 40
41 selinux_read_policy(sysadm_t)
42
41 # Add/remove user home directories 43 # Add/remove user home directories
42 userdom_manage_user_home_dirs(sysadm_t) 44 userdom_manage_user_home_dirs(sysadm_t)
43 userdom_home_filetrans_user_home_dir(sysadm_t)
44
45--- a/policy/modules/system/init.if 45--- a/policy/modules/system/init.if
46+++ b/policy/modules/system/init.if 46+++ b/policy/modules/system/init.if
47@@ -1232,30 +1232,31 @@ interface(`init_script_file_entry_type', 47@@ -1394,30 +1394,31 @@ interface(`init_script_file_entry_type',
48 ## </summary> 48 ## </summary>
49 ## </param> 49 ## </param>
50 # 50 #
@@ -80,7 +80,7 @@ Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
80 80
81 ######################################## 81 ########################################
82 ## <summary> 82 ## <summary>
83@@ -1267,22 +1268,23 @@ interface(`init_spec_domtrans_script',` 83@@ -1429,22 +1430,23 @@ interface(`init_spec_domtrans_script',`
84 ## </summary> 84 ## </summary>
85 ## </param> 85 ## </param>
86 # 86 #
@@ -108,11 +108,11 @@ Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
108 108
109 ######################################## 109 ########################################
110 ## <summary> 110 ## <summary>
111@@ -2502,5 +2504,34 @@ interface(`init_reload_all_units',` 111@@ -2972,5 +2974,34 @@ interface(`init_admin',`
112 class service reload; 112 init_stop_all_units($1)
113 ') 113 init_stop_generic_units($1)
114 114 init_stop_system($1)
115 allow $1 systemdunit:service reload; 115 init_telinit($1)
116 ') 116 ')
117+ 117+
118+######################################## 118+########################################
diff --git a/recipes-security/refpolicy/refpolicy_git.inc b/recipes-security/refpolicy/refpolicy_git.inc
index b320e4d..21e3a4c 100644
--- a/recipes-security/refpolicy/refpolicy_git.inc
+++ b/recipes-security/refpolicy/refpolicy_git.inc
@@ -20,13 +20,11 @@ SRC_URI += "file://poky-fc-subs_dist.patch \
20 file://poky-fc-dmesg.patch \ 20 file://poky-fc-dmesg.patch \
21 file://poky-fc-fstools.patch \ 21 file://poky-fc-fstools.patch \
22 file://poky-fc-mta.patch \ 22 file://poky-fc-mta.patch \
23 file://poky-fc-nscd.patch \
24 file://poky-fc-screen.patch \ 23 file://poky-fc-screen.patch \
25 file://poky-fc-ssh.patch \ 24 file://poky-fc-ssh.patch \
26 file://poky-fc-sysnetwork.patch \ 25 file://poky-fc-sysnetwork.patch \
27 file://poky-fc-udevd.patch \ 26 file://poky-fc-udevd.patch \
28 file://poky-fc-rpm.patch \ 27 file://poky-fc-rpm.patch \
29 file://poky-fc-ftpwho-dir.patch \
30 file://poky-fc-fix-real-path_su.patch \ 28 file://poky-fc-fix-real-path_su.patch \
31 file://refpolicy-update-for_systemd.patch \ 29 file://refpolicy-update-for_systemd.patch \
32 " 30 "