Skip to contentSkip to conversation

/usr/lib32 type

refpolicy Martin Orr 2 participants 4 messages Jun 7, 2008 – Jun 13, 2008 SELinux security module

lore
Share & tools
lore

Martin Orr

author
#0 lore raw

On a 64-bit Debian system, /usr/lib32 is a symlink to /emul/ia32-linux/usr/lib. It should be labelled as lib_t.

I don't know if the distro_debian is necessary - take it out if you want.

Signature · 1 line
Martin Orr

Written by: Martin Orr

Mark /usr/lib32 as type lib_t

modules/system/libraries.fc renamed from modules/system/libraries.fc.orig +3 -0
Index: policy/modules/system/libraries.fc
===================================================================
@@ -110,6 +110,9 @@
 
 /usr/(.*/)?lib(/.*)?				gen_context(system_u:object_r:lib_t,s0)
 /usr/(.*/)?lib64(/.*)?				gen_context(system_u:object_r:lib_t,s0)
+ifdef(`distro_debian',`
+	/usr/(.*/)?lib32(/.*)?		-l	gen_context(system_u:object_r:lib_t,s0)
+')
 
 /usr/(.*/)?lib(64)?(/.*)?/ld-[^/]*\.so(\.[^/]*)* gen_context(system_u:object_r:ld_so_t,s0)
 
#1 lore raw
Quoted 4 lines · Martin Orr

On a 64-bit Debian system, /usr/lib32 is a symlink to /emul/ia32-linux/usr/lib. It should be labelled as lib_t.

I don't know if the distro_debian is necessary - take it out if you want.

Actually what seems excessive is the (.*/)? in the middle. Is it really needed? Its very broad, and doesn't sound like its needed.

Quoted 19 lines

plain text document attachment (116_usr_lib32)
Written by: Martin Orr

Mark /usr/lib32 as type lib_t

Index: policy/modules/system/libraries.fc
===================================================================

modules/system/libraries.fc renamed from modules/system/libraries.fc.orig +3 -0
@@ -110,6 +110,9 @@
 
 /usr/(.*/)?lib(/.*)?				gen_context(system_u:object_r:lib_t,s0)
 /usr/(.*/)?lib64(/.*)?				gen_context(system_u:object_r:lib_t,s0)
+ifdef(`distro_debian',`
+	/usr/(.*/)?lib32(/.*)?		-l	gen_context(system_u:object_r:lib_t,s0)
+')
 
 /usr/(.*/)?lib(64)?(/.*)?/ld-[^/]*\.so(\.[^/]*)* gen_context(system_u:object_r:ld_so_t,s0)
 
Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
author
#2 lore raw
Quoted 8 lines · Christopher J. PeBenito
Quoted 4 lines · Martin Orr

On a 64-bit Debian system, /usr/lib32 is a symlink to /emul/ia32-linux/usr/lib. It should be labelled as lib_t.

I don't know if the distro_debian is necessary - take it out if you want.

Actually what seems excessive is the (.*/)? in the middle. Is it really needed? Its very broad, and doesn't sound like its needed.

I probably copied it from the lines above. And in fact given the -l, there is not much point in the (/.*)? at the end either.

Best wishes,
Martin

Quoted 19 lines
Quoted 19 lines

plain text document attachment (116_usr_lib32)
Written by: Martin Orr

Mark /usr/lib32 as type lib_t

Index: policy/modules/system/libraries.fc
===================================================================

modules/system/libraries.fc renamed from modules/system/libraries.fc.orig +3 -0
@@ -110,6 +110,9 @@
 
 /usr/(.*/)?lib(/.*)?				gen_context(system_u:object_r:lib_t,s0)
 /usr/(.*/)?lib64(/.*)?				gen_context(system_u:object_r:lib_t,s0)
+ifdef(`distro_debian',`
+	/usr/(.*/)?lib32(/.*)?		-l	gen_context(system_u:object_r:lib_t,s0)
+')
 
 /usr/(.*/)?lib(64)?(/.*)?/ld-[^/]*\.so(\.[^/]*)* gen_context(system_u:object_r:ld_so_t,s0)
 
Signature · 6 lines
Martin Orr

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.
#3 lore raw
Quoted 5 lines · Martin Orr
Quoted 4 lines · Christopher J. PeBenito
Quoted 3 lines · Martin Orr

On a 64-bit Debian system, /usr/lib32 is a symlink to /emul/ia32-linux/usr/lib. It should be labelled as lib_t.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

I don't know if the distro_debian is necessary - take it out if you want.

Actually what seems excessive is the (.*/)? in the middle. Is it really needed? Its very broad, and doesn't sound like its needed.

I probably copied it from the lines above. And in fact given the -l, there is not much point in the (/.*)? at the end either.

I added in an entry for the /usr/lib32 symlink.

Signature · 9 lines
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.