Skip to contentSkip to conversation

mandb: fixes for systemd timer and /usr/local/man label

PATCH New Christian Göttsche 2 participants 5 messages Sep 12, 2017 – Sep 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mandb: fixes for systemd timer and /usr/local/man label

---
 mandb.te | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
mandb.te +3 -1
index 5c759da..de1ac65 100644
@@ -10,7 +10,7 @@ roleattribute system_r mandb_roles;
 
 type mandb_t;
 type mandb_exec_t;
-application_domain(mandb_t, mandb_exec_t)
+init_system_domain(mandb_t, mandb_exec_t)
 role mandb_roles types mandb_t;
 
 type mandb_unit_t;
@@ -40,6 +40,8 @@ domain_use_interactive_fds(mandb_t)
 
 files_dontaudit_search_home(mandb_t)
 files_read_etc_files(mandb_t)
+# /usr/local/man
+files_read_usr_symlinks(mandb_t)
 # search /var/run/nscd/socket
 files_search_pids(mandb_t)
 
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 mandb: fixes for systemd timer and /usr/local/man label

Quoted 9 lines · Christian G?ttsche via refpolicy
---
  mandb.te | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
mandb.te +0 -0
index 5c759da..de1ac65 100644

mandb.te roleattribute system_r mandb_roles; · line 13

Quoted 5 lines
mandb.te +1 -1
@@ -10,7 +10,7 @@ roleattribute system_r mandb_roles;
 
  type mandb_t;
  type mandb_exec_t;
-application_domain(mandb_t, mandb_exec_t)
+init_system_domain(mandb_t, mandb_exec_t)

The way the policy is written, it seems like mandb is both an application domain and a system domain.

Quoted 13 lines
mandb.te +2 -0
  role mandb_roles types mandb_t;
 
  type mandb_unit_t;
@@ -40,6 +40,8 @@ domain_use_interactive_fds(mandb_t)
 
  files_dontaudit_search_home(mandb_t)
  files_read_etc_files(mandb_t)
+# /usr/local/man
+files_read_usr_symlinks(mandb_t)
  # search /var/run/nscd/socket
  files_search_pids(mandb_t)
 
Signature · 1 line
Chris PeBenito
#2 lore raw

PATCH 1/1 mandb: fixes for systemd timer and /usr/local/man label

2017-09-13 1:59 GMT+02:00 Chris PeBenito <[email protected]>:

Quoted 6 lines · Christian G?ttsche via refpolicy
Quoted 5 lines
---
  mandb.te | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
Quoted 14 lines

mandb.te roleattribute system_r mandb_roles; · line 12

Quoted 9 lines
mandb.te +1 -1
index 5c759da..de1ac65 100644
@@ -10,7 +10,7 @@ roleattribute system_r mandb_roles;
    type mandb_t;
  type mandb_exec_t;
-application_domain(mandb_t, mandb_exec_t)
+init_system_domain(mandb_t, mandb_exec_t)

The way the policy is written, it seems like mandb is both an application domain and a system domain.

Should be both calls present, although init_system_domain calls application_domain?

Quoted 16 lines

mandb.te domain_use_interactive_fds(mandb_t) · line 46

Quoted 11 lines
mandb.te +2 -0
  role mandb_roles types mandb_t;
    type mandb_unit_t;
@@ -40,6 +40,8 @@ domain_use_interactive_fds(mandb_t)
    files_dontaudit_search_home(mandb_t)
  files_read_etc_files(mandb_t)
+# /usr/local/man
+files_read_usr_symlinks(mandb_t)
  # search /var/run/nscd/socket
  files_search_pids(mandb_t)
 

--
Chris PeBenito

#3 lore raw

PATCH 1/1 mandb: fixes for systemd timer and /usr/local/man label

Quoted 22 lines · Christian G?ttsche

2017-09-13 1:59 GMT+02:00 Chris PeBenito <[email protected]>:

Quoted 6 lines · Christian G?ttsche via refpolicy
Quoted 5 lines
---
   mandb.te | 4 +++-
   1 file changed, 3 insertions(+), 1 deletion(-)
Quoted 14 lines

mandb.te roleattribute system_r mandb_roles; · line 12

Quoted 9 lines
mandb.te +1 -1
index 5c759da..de1ac65 100644
@@ -10,7 +10,7 @@ roleattribute system_r mandb_roles;
     type mandb_t;
   type mandb_exec_t;
-application_domain(mandb_t, mandb_exec_t)
+init_system_domain(mandb_t, mandb_exec_t)

The way the policy is written, it seems like mandb is both an application domain and a system domain.

Quoted 2 lines

Should be both calls present, although init_system_domain calls application_domain?

Sorry, I looked if that was the case and still somehow missed it.

Signature · 1 line
Chris PeBenito
#4 lore raw

PATCH 1/1 mandb: fixes for systemd timer and /usr/local/man label

In reply to Christian Göttsche
Quoted 18 lines · Christian G?ttsche via refpolicy
---
  mandb.te | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
mandb.te +1 -1
index 5c759da..de1ac65 100644
@@ -10,7 +10,7 @@ roleattribute system_r mandb_roles;
 
  type mandb_t;
  type mandb_exec_t;
-application_domain(mandb_t, mandb_exec_t)
+init_system_domain(mandb_t, mandb_exec_t)
  role mandb_roles types mandb_t;
 
  type mandb_unit_t;

mandb.te domain_use_interactive_fds(mandb_t) · line 46

Quoted 7 lines
mandb.te +2 -0
@@ -40,6 +40,8 @@ domain_use_interactive_fds(mandb_t)
 
  files_dontaudit_search_home(mandb_t)
  files_read_etc_files(mandb_t)
+# /usr/local/man
+files_read_usr_symlinks(mandb_t)
  # search /var/run/nscd/socket
  files_search_pids(mandb_t)

Merged.

Signature · 1 line
Chris PeBenito