diff options
author | Joe MacDonald <joe@deserted.net> | 2019-04-08 13:50:40 -0400 |
---|---|---|
committer | Joe MacDonald <joe@deserted.net> | 2019-04-10 10:57:14 -0400 |
commit | 776da889b550ac9e5be414a8cc10fd86b1923264 (patch) | |
tree | 79771fa29c551e934321434f4b5f3da7a27fd91f /recipes-security/refpolicy/refpolicy-2.20170204/ftp-add-ftpd_t-to-mlsfilewrite.patch | |
parent | a6a3cadb1ef3203a123d8f5f9df27832f55b2ce3 (diff) | |
download | meta-selinux-jjm/RELEASE_2.20190201.tar.gz |
refpolicy: update to 2.20190201 and git HEAD policiesjjm/RELEASE_2.20190201
Additionally, the README has fallen out of date, update it to reflect the
current reality of layer dependencies.
Signed-off-by: Joe MacDonald <joe@deserted.net>
Diffstat (limited to 'recipes-security/refpolicy/refpolicy-2.20170204/ftp-add-ftpd_t-to-mlsfilewrite.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy-2.20170204/ftp-add-ftpd_t-to-mlsfilewrite.patch | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/recipes-security/refpolicy/refpolicy-2.20170204/ftp-add-ftpd_t-to-mlsfilewrite.patch b/recipes-security/refpolicy/refpolicy-2.20170204/ftp-add-ftpd_t-to-mlsfilewrite.patch deleted file mode 100644 index 85c40a4..0000000 --- a/recipes-security/refpolicy/refpolicy-2.20170204/ftp-add-ftpd_t-to-mlsfilewrite.patch +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
1 | From e4e95b723d31c7b678a05cd81a96b10185978b4e Mon Sep 17 00:00:00 2001 | ||
2 | From: Roy Li <rongqing.li@windriver.com> | ||
3 | Date: Mon, 10 Feb 2014 18:10:12 +0800 | ||
4 | Subject: [PATCH] ftp: add ftpd_t to mls_file_write_all_levels | ||
5 | |||
6 | Proftpd will create file under /var/run, but its mls is in high, and | ||
7 | can not write to lowlevel | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | type=AVC msg=audit(1392347709.621:15): avc: denied { write } for pid=545 comm="proftpd" name="/" dev="tmpfs" ino=5853 scontext=system_u:system_r:ftpd_t:s15:c0.c1023 tcontext=system_u:object_r:var_run_t:s0-s15:c0.c1023 tclass=dir | ||
12 | type=AVC msg=audit(1392347709.621:15): avc: denied { add_name } for pid=545 comm="proftpd" name="proftpd.delay" scontext=system_u:system_r:ftpd_t:s15:c0.c1023 tcontext=system_u:object_r:var_run_t:s0-s15:c0.c1023 tclass=dir | ||
13 | type=SYSCALL msg=audit(1392347709.621:15): arch=c000003e syscall=2 success=yes exit=3 a0=471910 a1=42 a2=1b6 a3=8 items=0 ppid=539 pid=545 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm="proftpd" exe="/usr/sbin/proftpd" subj=system_u:system_r:ftpd_t:s15:c0.c1023 key=(null) | ||
14 | |||
15 | root@localhost:~# sesearch --allow -s ftpd_t -t var_run_t|grep dir|grep add_name | ||
16 | allow ftpd_t var_run_t : dir { ioctl read write getattr lock add_name remove_name search open } ; | ||
17 | root@localhost:~# | ||
18 | |||
19 | Signed-off-by: Roy Li <rongqing.li@windriver.com> | ||
20 | Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> | ||
21 | --- | ||
22 | policy/modules/contrib/ftp.te | 2 ++ | ||
23 | 1 file changed, 2 insertions(+) | ||
24 | |||
25 | --- a/policy/modules/contrib/ftp.te | ||
26 | +++ b/policy/modules/contrib/ftp.te | ||
27 | @@ -148,10 +148,12 @@ init_system_domain(ftpdctl_t, ftpdctl_ex | ||
28 | role ftpdctl_roles types ftpdctl_t; | ||
29 | |||
30 | type ftpdctl_tmp_t; | ||
31 | files_tmp_file(ftpdctl_tmp_t) | ||
32 | |||
33 | +mls_file_write_all_levels(ftpd_t) | ||
34 | + | ||
35 | type sftpd_t; | ||
36 | domain_type(sftpd_t) | ||
37 | role system_r types sftpd_t; | ||
38 | |||
39 | type xferlog_t; | ||