All of lore.kernel.org
 help / color / mirror / Atom feed
* Process Transition
@ 2004-03-11 20:49 Chad Hanson
  2004-03-12 17:52 ` Stephen Smalley
  2004-03-12 18:01 ` David Caplan
  0 siblings, 2 replies; 7+ messages in thread
From: Chad Hanson @ 2004-03-11 20:49 UTC (permalink / raw)
  To: Stephen Smalley (E-mail), SE Linux (E-mail)


We found a piece of process transition code that should be updated to work
as expected.

In ss/services.c context_struct_compute_av() the following should be
changed:

	if (tclass == SECCLASS_PROCESS &&
bug >>	    avd->allowed && PROCESS__TRANSITION &&
	    scontext->role != tcontext->role) {
		for (ra = policydb.role_allow; ra; ra = ra->next) {
			if (scontext->role == ra->role &&
			    tcontext->role == ra->new_role)
				break;
		}
		if (!ra)
			avd->allowed = (avd->allowed) &
~(PROCESS__TRANSITION);
	}

it should be

	if (tclass == SECCLASS_PROCESS &&
	    avd->allowed & PROCESS__TRANSITION &&
	    scontext->role != tcontext->role) {

-Chad
_______________________________________________________________
Chad Hanson				mailto:chanson@tcs-sec.com
Trusted Computer Solutions		Phone: 217-384-0028 x12
121 W Goose Alley			Fax: 217-384-0288
Urbana IL 61801



--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 7+ messages in thread
* Process Transition
@ 2003-05-14 20:06 selinux
  2003-05-15  1:10 ` Frank Mayer
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: selinux @ 2003-05-14 20:06 UTC (permalink / raw)
  To: SELinux

I am having an issue with policy configuration.  On a default install of 
redhat, I compiled and installed the selinux kernel and associated tools.  
I've probably spent about 5 hours familiarizing myself with the policy 
language and the logic of type enforcement.  I browsed through the archive 
for a bit, and didn't find a clear solution to my issue.

Upon booting the LSM kernel in permissive mode, I get many access denied 
messages as the init process runs (as well as some other processes that 
run at boot).  I am sure that once I have an understanding as to why one 
of these occur, I should be able to rectify the remaining problems, so I 
will post the first denied process transition.

avc:  denied  { transition } for  pid=1 comm=swapper path=/sbin/init /
dev=08 :01 ino=229436 scontext=system_u:system_r:kernel_t /
tcontext=system_u:system_r:init_t tclass=process

I have the following line in the policy.conf (post make install-src 
install, of course):

allow kernel_t init_t:process transition;

In Frank Mayer's post about domain transitions,

http://www.nsa.gov/selinux/list-archive/3984.html

he states that program entry and program execute rules are also required.  
I have the following rules:

allow init_t init_exec_t:file entrypoint;
allow init_t init_exec_t:file { read getattr lock execute ioctl };

Obviously, what I have is not sufficient (or perhaps wrong/irrelevant).  
What else is required to allow the transition to occur?  I realize this a 
developer's list, not a help-me spam list, but I haven't found any 
other good sources.  

Please advise me if this is inappropriate and where else I might look
for some assistance.

Much thanks,

Jared


--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-03-12 18:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-11 20:49 Process Transition Chad Hanson
2004-03-12 17:52 ` Stephen Smalley
2004-03-12 18:01 ` David Caplan
  -- strict thread matches above, loose matches on Subject: below --
2003-05-14 20:06 selinux
2003-05-15  1:10 ` Frank Mayer
2003-05-15  1:13 ` Frank Mayer
2003-05-15 12:31 ` Stephen Smalley

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.