how to enable se linux for my app?
well just a quickie:
I wrote an application, but can not run the linux executable nor libraries when selinux is activated. what command should i use to "include" the libraries and executable under selinux?
--
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.
Quoted 4 lines · Greger
well just a quickie:
I wrote an application, but can not run the linux executable nor libraries when selinux is activated. what command should i use to "include" the libraries and executable under selinux?
Its most likely a type enforcement issue. Your application need not be "SELinux aware" for it to execute at all. However, it must be labeled appropriately in the file system, with a type that is executable (e.g. bin_t). Common library types are lib_t and shlib_t.
What policy are you using (strict/targeted/custom)?
--
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.
On Fri, 09 Feb 2007 13:12:48 -0600, Michael C Thompson wrote
Quoted 11 lines
Quoted 4 lines · Greger
well just a quickie:
I wrote an application, but can not run the linux executable nor libraries when selinux is activated. what command should i use to "include" the libraries and executable under selinux?Its most likely a type enforcement issue. Your application need not be "SELinux aware" for it to execute at all. However, it must be labeled appropriately in the file system, with a type that is executable (e.g.
bin_t). Common library types arelib_tandshlib_t.
Quoted 7 lines
What policy are you using (strict/targeted/custom)?
--
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.
hi, well not sure,
I have these options in the settings dialog:
1)"upprätthållande"( swedish) means sort of "maintained or 'protected' in english) 2)"tillåtande", which means "allowing"
3)"inactiverad", inactivated.
I'd like to have protection with the first option, but with that I can't run the app. So, what do I need to do on the executable and libs when I install them, to make them runnable?
many thank's for any advice.
--
http://www.gregerhaga.net/
http://hack-space.biz/
--
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.
Quoted 19 lines · Greger
On Fri, 09 Feb 2007 13:12:48 -0600, Michael C Thompson wrote
Quoted 11 lines
Quoted 4 lines · Greger
well just a quickie:
I wrote an application, but can not run the linux executable nor libraries when selinux is activated. what command should i use to "include" the libraries and executable under selinux?Its most likely a type enforcement issue. Your application need not be "SELinux aware" for it to execute at all. However, it must be labeled appropriately in the file system, with a type that is executable (e.g.
bin_t). Common library types arelib_tandshlib_t.Quoted 7 lines
What policy are you using (strict/targeted/custom)?
--
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.
Quoted 9 lines
hi, well not sure,
I have these options in the settings dialog:
1)"upprätthållande"( swedish) means sort of "maintained or 'protected' in english) 2)"tillåtande", which means "allowing"
3)"inactiverad", inactivated.
I'd like to have protection with the first option, but with that I can't run the app. So, what do I need to do on the executable and libs when I install them, to make them runnable?
many thank's for any advice.
i.e. enforcing/permissive/disabled. Those are system-wide settings, not per-application.
What you should do is look at your audit logs (either /var/log/messages if not running auditd or /var/log/audit/audit.log if running it) to see the particular denials, and then we can decide how best to proceed with your application. Look for "avc: denied" messages. What is your base distribution (e.g. Fedora Core 6?)?
Signature · 8 lines
Stephen Smalley National Security Agency -- 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.
On Fri, 09 Feb 2007 15:39:58 -0500, Stephen Smalley wrote
Quoted 15 lines · Greger
Quoted 14 lines
On Fri, 09 Feb 2007 13:12:48 -0600, Michael C Thompson wrote
Quoted 13 lines
Quoted 4 lines · Greger
well just a quickie:
I wrote an application, but can not run the linux executable nor libraries when selinux is activated. what command should i use to "include" the libraries and executable under selinux?Its most likely a type enforcement issue. Your application need not be "SELinux aware" for it to execute at all. However, it must be labeled appropriately in the file system, with a type that is executable (e.g.
bin_t). Common library types arelib_tandshlib_t.What policy are you using (strict/targeted/custom)?
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
--
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.hi, well not sure,
I have these options in the settings dialog:
1)"upprätthållande"( swedish) means sort of "maintained or 'protected' in
english)
Quoted 7 lines
Quoted 6 lines
2)"tillåtande", which means "allowing"
3)"inactiverad", inactivated.
I'd like to have protection with the first option, but with that I can't run the app. So, what do I need to do on the executable and libs when I install them, to make them runnable?
many thank's for any advice.
Quoted 8 lines
i.e. enforcing/permissive/disabled. Those are system-wide settings, not per-application.
What you should do is look at your audit logs (either
/var/log/messagesif not running auditd or/var/log/audit/audit.logif running it) to see the particular denials, and then we can decide how best to proceed with your application. Look for "avc: denied" messages. What is your base distribution (e.g. Fedora Core 6?)?
yes, fc6,
found this in /var/log/messages
Feb 10 02:35:41 localhost kernel: audit(1171067741.422:18): avc: denied {execmod } for pid=29429 comm="x" name="libqxrssapp.so" dev=dm-0 ino=2588491 scontext=user_u:system_r:unconfined_t:s0 tcontext=user_u:object_r:user_home_t:s0 tclass=file
qxrssapp is a library taht the application uses, the app is made of six libraries plus the main func in the executable.
h
Quoted 10 lines
Signature · 9 lines
-- Stephen Smalley National Security Agency -- 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.
--
http://www.gregerhaga.net/
http://hack-space.biz/
--
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.
Quoted 7 lines · Greger
Feb 10 02:35:41 localhost kernel: audit(1171067741.422:18): avc: denied {execmod } for pid=29429 comm="x" name="libqxrssapp.so" dev=dm-0 ino=2588491 scontext=user_u:system_r:unconfined_t:s0 tcontext=user_u:object_r:user_home_t:s0 tclass=file
qxrssapp is a library taht the application uses, the app is made of six libraries plus the main func in the executable.
http://etbe.blogspot.com/2007/02/execmod.html
Your shared object needs to be compiled with -fpic or -fPIC. The command eu-findtextrel can be used to discover which functions were compiled incorrectly. See the above URL for more information.
Signature · 9 lines
[email protected] http://etbe.blogspot.com/ My Blog http://www.coker.com.au/sponsorship.html Sponsoring Free Software development -- 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.