1 |
commit: ebbdea62e2a5ee04b6c4ecf78315dd133fa23023 |
2 |
Author: Jason Zaman <jason <AT> perfinion <DOT> com> |
3 |
AuthorDate: Sat Jan 12 08:03:43 2019 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 10 04:11:25 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=ebbdea62 |
7 |
|
8 |
userdomain: introduce userdom_user_home_dir_filetrans_user_cert |
9 |
|
10 |
Signed-off-by: Jason Zaman <jason <AT> perfinion.com> |
11 |
|
12 |
policy/modules/system/userdomain.if | 29 +++++++++++++++++++++++++++++ |
13 |
1 file changed, 29 insertions(+) |
14 |
|
15 |
diff --git a/policy/modules/system/userdomain.if b/policy/modules/system/userdomain.if |
16 |
index 3f380d40..7fe015de 100644 |
17 |
--- a/policy/modules/system/userdomain.if |
18 |
+++ b/policy/modules/system/userdomain.if |
19 |
@@ -2522,6 +2522,35 @@ interface(`userdom_user_home_content_filetrans',` |
20 |
files_search_home($1) |
21 |
') |
22 |
|
23 |
+######################################## |
24 |
+## <summary> |
25 |
+## Automatically use the user_cert_t label for selected resources |
26 |
+## created in a users home directory |
27 |
+## </summary> |
28 |
+## <param name="domain"> |
29 |
+## <summary> |
30 |
+## Domain allowed access |
31 |
+## </summary> |
32 |
+## </param> |
33 |
+## <param name="class"> |
34 |
+## <summary> |
35 |
+## Resource type(s) for which the label should be used |
36 |
+## </summary> |
37 |
+## </param> |
38 |
+## <param name="filename" optional="true"> |
39 |
+## <summary> |
40 |
+## Name of the resource that is being created |
41 |
+## </summary> |
42 |
+## </param> |
43 |
+# |
44 |
+interface(`userdom_user_home_dir_filetrans_user_cert',` |
45 |
+ gen_require(` |
46 |
+ type user_cert_t; |
47 |
+ ') |
48 |
+ |
49 |
+ userdom_user_home_dir_filetrans($1, user_cert_t, $2, $3) |
50 |
+') |
51 |
+ |
52 |
######################################## |
53 |
## <summary> |
54 |
## Create objects in a user home directory |