Skip to contentSkip to conversation

another trivial

PATCH In review Russell Coker 2 participants 2 messages Jan 14, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 another trivial

This adds a hostnamed rule and also corrects an error in a previous patch I sent (a copy/paste error).

policy/modules/system/systemd.te +4 -0
Index: refpolicy-2.20180701/policy/modules/system/systemd.te
===================================================================
@@ -347,6 +347,10 @@ optional_policy(`
 	networkmanager_dbus_chat(systemd_hostnamed_t)
 ')
 
+optional_policy(`
+	unconfined_dbus_send(systemd_hostnamed_t)
+')
+
 #########################################
 #
 # hw local policy
policy/modules/admin/usermanage.te +1 -1
Index: refpolicy-2.20180701/policy/modules/admin/usermanage.te
===================================================================
@@ -550,7 +550,7 @@ optional_policy(`
 ')
 
 optional_policy(`
-	apt_use_fds(groupadd_t)
+	apt_use_fds(useradd_t)
 ')
 
 optional_policy(`
#1 lore raw
Quoted 2 lines · Russell Coker

This adds a hostnamed rule and also corrects an error in a previous patch I sent (a copy/paste error).

I merged the copy-paste error, but the hostnamed one still has a question from the previous patch (subj: "some little stuff")

Quoted 29 lines

Index: refpolicy-2.20180701/policy/modules/system/systemd.te
===================================================================

policy/modules/system/systemd.te +4 -0
@@ -347,6 +347,10 @@ optional_policy(`
  	networkmanager_dbus_chat(systemd_hostnamed_t)
  ')
 
+optional_policy(`
+	unconfined_dbus_send(systemd_hostnamed_t)
+')
+
  #########################################
  #
  # hw local policy

Index: refpolicy-2.20180701/policy/modules/admin/usermanage.te
===================================================================

policy/modules/admin/usermanage.te +1 -1
@@ -550,7 +550,7 @@ optional_policy(`
  ')
 
  optional_policy(`
-	apt_use_fds(groupadd_t)
+	apt_use_fds(useradd_t)
  ')
 
  optional_policy(`
Signature · 1 line
Chris PeBenito