Skip to contentSkip to conversation

Systemd by version 231 starts using shared library and systemd daemons execute it. For this reason lib_t type is needed.

PATCH New Lukas Vrabec 2 participants 3 messages Jul 30, 2016 – Aug 2, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Systemd by version 231 starts using shared library and systemd daemons execute it. For this reason lib_t type is needed.

---
 policy/modules/system/libraries.fc | 2 ++
 1 file changed, 2 insertions(+)
policy/modules/system/libraries.fc +2 -0
index b532946..c4971ab 100644
@@ -148,6 +148,8 @@ ifdef(`distro_debian',`
 /usr/lib/nvidia/libGL(core)?\.so(\.[^/]*)* --	gen_context(system_u:object_r:textrel_shlib_t,s0)
 /usr/lib/xorg/modules/glesx\.so(\.[^/]*)* --	gen_context(system_u:object_r:textrel_shlib_t,s0)
 
+/usr/lib/systemd/libsystemd-shared-231\.so.*   --      gen_context(system_u:object_r:lib_t,s0)
+
 /usr/(local/)?.*\.so(\.[^/]*)*		--	gen_context(system_u:object_r:lib_t,s0)
 /usr/(local/)?lib(64)?/wine/.+\.so	--	gen_context(system_u:object_r:textrel_shlib_t,s0)
 /usr/(local/)?lib(64)?/(sse2/)?libfame-.*\.so.*	--	gen_context(system_u:object_r:textrel_shlib_t,s0)
Signature · 1 line
2.5.5
#1 lore raw

PATCH 1/1 Systemd by version 231 starts using shared library and systemd daemons execute it. For this reason lib_t type is needed.

231 is the version number. Needs a numeric regex so the next version doesn't break.

Quoted 21 lines · Lukas Vrabec

---
policy/modules/system/libraries.fc | 2 ++

1 file changed, 2 insertions(+)
policy/modules/system/libraries.fc +0 -0
index b532946..c4971ab 100644
@@ -148,6 +148,8 @@ ifdef(`distro_debian',`

/usr/lib/nvidia/libGL(core)?\.so(\.[^/]*)*
-- gen_context(system_u:object_r:textrel_shlib_t,s0)
/usr/lib/xorg/modules/glesx\.so(\.[^/]*)*
-- gen_context(system_u:object_r:textrel_shlib_t,s0)

+/usr/lib/systemd/libsystemd-shared-231\.so.* --
gen_context(system_u:object_r:lib_t,s0)
+
/usr/(local/)?.*\.so(\.[^/]*)* -- gen_context(system_u:object_r:lib_t,s0)
/usr/(local/)?lib(64)?/wine/.+\.so -- gen_context(system_u:object_r:textrel_shlib_t,s0)
/usr/(local/)?lib(64)?/(sse2/)?libfame-.*\.so.* -- gen_context(system_u:object_r:textrel_shlib_t,s0)

Signature · 1 line
Sent from my Nexus 6P with K-9 Mail.
#2 lore raw

PATCH 1/1 Systemd by version 231 starts using shared library and systemd daemons execute it. For this reason lib_t type is needed.

Quoted 18 lines · Russell Coker

231 is the version number. Needs a numeric regex so the next version doesn't break.

Quoted 15 lines · Lukas Vrabec

---
policy/modules/system/libraries.fc | 2 ++

1 file changed, 2 insertions(+)
policy/modules/system/libraries.fc +0 -0
index b532946..c4971ab 100644
@@ -148,6 +148,8 @@ ifdef(`distro_debian',`

/usr/lib/nvidia/libGL(core)?\.so(\.[^/]*)*
-- gen_context(system_u:object_r:textrel_shlib_t,s0)
/usr/lib/xorg/modules/glesx\.so(\.[^/]*)*
-- gen_context(system_u:object_r:textrel_shlib_t,s0)

Quoted 7 lines
Quoted 6 lines

+/usr/lib/systemd/libsystemd-shared-231\.so.* --
gen_context(system_u:object_r:lib_t,s0)
+
/usr/(local/)?.*\.so(\.[^/]*)* -- gen_context(system_u:object_r:lib_t,s0)
/usr/(local/)?lib(64)?/wine/.+\.so -- gen_context(system_u:object_r:textrel_shlib_t,s0)
/usr/(local/)?lib(64)?/(sse2/)?libfame-.*\.so.* -- gen_context(system_u:object_r:textrel_shlib_t,s0)

Yes.
You are right. I'll send new patch.

Signature · 3 lines
Lukas Vrabec
SELinux Solutions
Red Hat, Inc.