LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-25-2014, 10:39 AM   #1
cquick197
LQ Newbie
 
Registered: Feb 2014
Posts: 15

Rep: Reputation: 0
SELinux run process as type?


Hello, I have created some rules in SELinux that allows reading/writing to files. I am trying to test that I can or cannot read under certain types with a simple C program I wrote. I can set the type of the program with a simple $chcon -t blah_t program, and when I run $ls -Z, it shows that it is the correct type, however when I run the program and run $ps -eZ | grep program, it still shows the program as running under the unconfined_t type. How can I run this program under the designated type I have assigned? I have rules to allow transitioning from unconfined_t to blah_t, but that hasn't worked.


Thanks in advance!
 
Old 04-26-2014, 04:59 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,393
Blog Entries: 55

Rep: Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565Reputation: 3565
When I need a policy for a daemon I use the sepolgen GUI. See 'man sepolgen'?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SELinux possible to allow role to type? cquick197 Linux - Security 2 04-22-2014 04:17 PM
SELinux: how to list all Type Enforcement contexts that exist on the system? Toomas Linux - Security 4 06-30-2011 01:10 AM
Selinux-how do i find out what domains have permissions on what type?(selinux policy) vishyc88 Linux - Security 2 11-22-2010 05:27 AM
SELinux: rules migration to new version - unknown type var_lib_t zbiggy Fedora 1 05-11-2009 10:43 AM
type declaration in SELinux silvercloud Linux - Enterprise 0 08-23-2005 04:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration