base: use new genhomedircon template for username
PATCH 1/2 base: use new genhomedircon template for username
Use the new genhomedircon templates for username-dependant file contexts (requires libsemanage >= 2.6).
This is the base policy part (1/2).
--- policy/modules/system/userdomain.fc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
policy/modules/system/userdomain.fc +1 -1
@@ -2,7 +2,7 @@ HOME_DIR -d gen_context(system_u:object_ HOME_DIR/.+ gen_context(system_u:object_r:user_home_t,s0) HOME_DIR/\.pki(/.*)? gen_context(system_u:object_r:user_cert_t,s0) -/tmp/gconfd-USER -d gen_context(system_u:object_r:user_tmp_t,s0) +/tmp/gconfd-%{USERNAME} -d gen_context(system_u:object_r:user_tmp_t,s0) /var/run/user -d gen_context(system_u:object_r:user_runtime_root_t,s0) /var/run/user/[^/]+ -d gen_context(system_u:object_r:user_runtime_t,s0)
PATCH 2/2 contrib: use new genhomedircon template for username
Use the new genhomedircon templates for username-dependant file contexts (requires libsemanage >= 2.6).
This is the contrib policy part (2/2).
--- policy/modules/contrib/evolution.fc | 2 +- policy/modules/contrib/gnome.fc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
policy/modules/contrib/evolution.fc +1 -1
@@ -1,7 +1,7 @@ HOME_DIR/\.camel_certs(/.*)? gen_context(system_u:object_r:evolution_home_t,s0) HOME_DIR/\.evolution(/.*)? gen_context(system_u:object_r:evolution_home_t,s0) -/tmp/\.exchange-USER(/.*)? gen_context(system_u:object_r:evolution_exchange_tmp_t,s0) +/tmp/\.exchange-%{USERNAME}(/.*)? gen_context(system_u:object_r:evolution_exchange_tmp_t,s0) /usr/bin/evolution.* -- gen_context(system_u:object_r:evolution_exec_t,s0)
policy/modules/contrib/gnome.fc +1 -1
@@ -9,7 +9,7 @@ HOME_DIR/orcexec\..* gen_context(system_ /etc/gconf(/.*)? gen_context(system_u:object_r:gconf_etc_t,s0) -/tmp/gconfd-USER/.* -- gen_context(system_u:object_r:gconf_tmp_t,s0) +/tmp/gconfd-%{USERNAME}/.* -- gen_context(system_u:object_r:gconf_tmp_t,s0) /usr/bin/gnome-keyring-daemon -- gen_context(system_u:object_r:gkeyringd_exec_t,s0) /usr/bin/mate-keyring-daemon -- gen_context(system_u:object_r:gkeyringd_exec_t,s0)
PATCH 2/2 contrib: use new genhomedircon template for username
Quoted 27 lines · Guido Trentalancia via refpolicy
Use the new genhomedircon templates for username-dependant file contexts (requires libsemanage >= 2.6).
This is the contrib policy part (2/2).
Signed-off-by Guido Trentalancia <[email protected]>--- policy/modules/contrib/evolution.fc | 2 +- policy/modules/contrib/gnome.fc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)diff -pru a/policy/modules/contrib/evolution.fc b/policy/modules/contrib/evolution.fc
policy/modules/contrib/evolution.fc +1
-1@@ -1,7 +1,7 @@ HOME_DIR/\.camel_certs(/.*)? gen_context(system_u:object_r:evolution_home_t,s0) HOME_DIR/\.evolution(/.*)? gen_context(system_u:object_r:evolution_home_t,s0) -/tmp/\.exchange-USER(/.*)? gen_context(system_u:object_r:evolution_exchange_tmp_t,s0) +/tmp/\.exchange-%{USERNAME}(/.*)? gen_context(system_u:object_r:evolution_exchange_tmp_t,s0) /usr/bin/evolution.* -- gen_context(system_u:object_r:evolution_exec_t,s0)diff -pru a/policy/modules/contrib/gnome.fc b/policy/modules/contrib/gnome.fc
policy/modules/contrib/gnome.fc HOME_DIR/orcexec\..* gen_context(system_ · line 15
Quoted 8 lines
policy/modules/contrib/gnome.fc +1
-1@@ -9,7 +9,7 @@ HOME_DIR/orcexec\..* gen_context(system_ /etc/gconf(/.*)? gen_context(system_u:object_r:gconf_etc_t,s0) -/tmp/gconfd-USER/.* -- gen_context(system_u:object_r:gconf_tmp_t,s0) +/tmp/gconfd-%{USERNAME}/.* -- gen_context(system_u:object_r:gconf_tmp_t,s0) /usr/bin/gnome-keyring-daemon -- gen_context(system_u:object_r:gkeyringd_exec_t,s0) /usr/bin/mate-keyring-daemon -- gen_context(system_u:object_r:gkeyringd_exec_t,s0)
Merged.
Signature · 1 line
Chris PeBenito
PATCH 1/2 base: use new genhomedircon template for username
In reply to Guido TrentalanciaQuoted 14 lines · Guido Trentalancia via refpolicy
Use the new genhomedircon templates for username-dependant file contexts (requires libsemanage >= 2.6).
This is the base policy part (1/2).
Signed-off-by Guido Trentalancia <[email protected]>--- policy/modules/system/userdomain.fc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)diff -pru a/policy/modules/system/userdomain.fc b/policy/modules/system/userdomain.fc
policy/modules/system/userdomain.fc HOME_DIR -d gen_context(system_u:object_ · line 8
Quoted 8 lines
policy/modules/system/userdomain.fc +1
-1@@ -2,7 +2,7 @@ HOME_DIR -d gen_context(system_u:object_ HOME_DIR/.+ gen_context(system_u:object_r:user_home_t,s0) HOME_DIR/\.pki(/.*)? gen_context(system_u:object_r:user_cert_t,s0) -/tmp/gconfd-USER -d gen_context(system_u:object_r:user_tmp_t,s0) +/tmp/gconfd-%{USERNAME} -d gen_context(system_u:object_r:user_tmp_t,s0) /var/run/user -d gen_context(system_u:object_r:user_runtime_root_t,s0) /var/run/user/[^/]+ -d gen_context(system_u:object_r:user_runtime_t,s0)
Merged.
Signature · 1 line
Chris PeBenito