diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy-git/poky-policy-allow-nfsd-to-exec-shell-commands.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy-git/poky-policy-allow-nfsd-to-exec-shell-commands.patch | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/recipes-security/refpolicy/refpolicy-git/poky-policy-allow-nfsd-to-exec-shell-commands.patch b/recipes-security/refpolicy/refpolicy-git/poky-policy-allow-nfsd-to-exec-shell-commands.patch index e77a730..189dc6e 100644 --- a/recipes-security/refpolicy/refpolicy-git/poky-policy-allow-nfsd-to-exec-shell-commands.patch +++ b/recipes-security/refpolicy/refpolicy-git/poky-policy-allow-nfsd-to-exec-shell-commands.patch | |||
@@ -9,13 +9,13 @@ Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> | |||
9 | --- | 9 | --- |
10 | policy/modules/contrib/rpc.te | 2 +- | 10 | policy/modules/contrib/rpc.te | 2 +- |
11 | policy/modules/kernel/kernel.if | 18 ++++++++++++++++++ | 11 | policy/modules/kernel/kernel.if | 18 ++++++++++++++++++ |
12 | 2 files changed, 19 insertions(+), 1 deletions(-) | 12 | 2 files changed, 19 insertions(+), 1 deletion(-) |
13 | 13 | ||
14 | diff --git a/policy/modules/contrib/rpc.te b/policy/modules/contrib/rpc.te | ||
15 | index 9566932..5605205 100644 | ||
16 | --- a/policy/modules/contrib/rpc.te | 14 | --- a/policy/modules/contrib/rpc.te |
17 | +++ b/policy/modules/contrib/rpc.te | 15 | +++ b/policy/modules/contrib/rpc.te |
18 | @@ -203,7 +203,7 @@ kernel_read_network_state(nfsd_t) | 16 | @@ -222,11 +222,11 @@ allow nfsd_t { nfsd_rw_t nfsd_ro_t }:dir |
17 | |||
18 | kernel_read_network_state(nfsd_t) | ||
19 | kernel_dontaudit_getattr_core_if(nfsd_t) | 19 | kernel_dontaudit_getattr_core_if(nfsd_t) |
20 | kernel_setsched(nfsd_t) | 20 | kernel_setsched(nfsd_t) |
21 | kernel_request_load_module(nfsd_t) | 21 | kernel_request_load_module(nfsd_t) |
@@ -24,11 +24,13 @@ index 9566932..5605205 100644 | |||
24 | 24 | ||
25 | corenet_sendrecv_nfs_server_packets(nfsd_t) | 25 | corenet_sendrecv_nfs_server_packets(nfsd_t) |
26 | corenet_tcp_bind_nfs_port(nfsd_t) | 26 | corenet_tcp_bind_nfs_port(nfsd_t) |
27 | diff --git a/policy/modules/kernel/kernel.if b/policy/modules/kernel/kernel.if | 27 | corenet_udp_bind_nfs_port(nfsd_t) |
28 | index 649e458..8a669c5 100644 | 28 | |
29 | --- a/policy/modules/kernel/kernel.if | 29 | --- a/policy/modules/kernel/kernel.if |
30 | +++ b/policy/modules/kernel/kernel.if | 30 | +++ b/policy/modules/kernel/kernel.if |
31 | @@ -804,6 +804,24 @@ interface(`kernel_unmount_proc',` | 31 | @@ -844,10 +844,28 @@ interface(`kernel_unmount_proc',` |
32 | allow $1 proc_t:filesystem unmount; | ||
33 | ') | ||
32 | 34 | ||
33 | ######################################## | 35 | ######################################## |
34 | ## <summary> | 36 | ## <summary> |
@@ -53,6 +55,5 @@ index 649e458..8a669c5 100644 | |||
53 | ## Get the attributes of the proc filesystem. | 55 | ## Get the attributes of the proc filesystem. |
54 | ## </summary> | 56 | ## </summary> |
55 | ## <param name="domain"> | 57 | ## <param name="domain"> |
56 | -- | 58 | ## <summary> |
57 | 1.7.5.4 | 59 | ## Domain allowed access. |
58 | |||