Browse Source

root_home: add policy module

Helmut Pozimski 4 years ago
parent
commit
2d394173e8
2 changed files with 10 additions and 0 deletions
  1. 3 0
      root_home.fc
  2. 7 0
      root_home.te

+ 3 - 0
root_home.fc

@@ -0,0 +1,3 @@
+/root       -d      gen_context(system_u:object_r:user_home_dir_t,s0-mls_systemhigh)
+/root/.+             gen_context(system_u:object_r:user_home_t,s0)
+/root/\.ssh(/.*)?                    gen_context(system_u:object_r:ssh_home_t,s0)

+ 7 - 0
root_home.te

@@ -0,0 +1,7 @@
+policy_module(root_home, 0.0.1)
+
+require {
+  type user_home_dir_t;
+  type user_home_t;
+  type ssh_home_t;
+}