diff options
Diffstat (limited to 'recipes-security/refpolicy/refpolicy/0024-fc-getty-add-file-context-to-start_getty.patch')
-rw-r--r-- | recipes-security/refpolicy/refpolicy/0024-fc-getty-add-file-context-to-start_getty.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes-security/refpolicy/refpolicy/0024-fc-getty-add-file-context-to-start_getty.patch b/recipes-security/refpolicy/refpolicy/0024-fc-getty-add-file-context-to-start_getty.patch new file mode 100644 index 0000000..b1a85b4 --- /dev/null +++ b/recipes-security/refpolicy/refpolicy/0024-fc-getty-add-file-context-to-start_getty.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From dca38e304bb64a5c3a18d02521f56ffe461ec126 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yi Zhao <yi.zhao@windriver.com> | ||
3 | Date: Fri, 15 Nov 2019 16:07:30 +0800 | ||
4 | Subject: [PATCH] fc/getty: add file context to start_getty | ||
5 | |||
6 | Upstream-Status: Inappropriate [embedded specific] | ||
7 | |||
8 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
9 | --- | ||
10 | policy/modules/system/getty.fc | 1 + | ||
11 | 1 file changed, 1 insertion(+) | ||
12 | |||
13 | diff --git a/policy/modules/system/getty.fc b/policy/modules/system/getty.fc | ||
14 | index 116ea6421..53ff6137b 100644 | ||
15 | --- a/policy/modules/system/getty.fc | ||
16 | +++ b/policy/modules/system/getty.fc | ||
17 | @@ -4,6 +4,7 @@ | ||
18 | /run/agetty\.reload -- gen_context(system_u:object_r:getty_runtime_t,s0) | ||
19 | |||
20 | /usr/bin/.*getty -- gen_context(system_u:object_r:getty_exec_t,s0) | ||
21 | +/usr/bin/start_getty -- gen_context(system_u:object_r:bin_t,s0) | ||
22 | |||
23 | /usr/sbin/.*getty -- gen_context(system_u:object_r:getty_exec_t,s0) | ||
24 | |||
25 | -- | ||
26 | 2.25.1 | ||
27 | |||