All of lore.kernel.org
 help / color / mirror / Atom feed
* /etc/initscript breaks SELinux
@ 2010-05-03  4:54 ` Justin Mattock
  0 siblings, 0 replies; 16+ messages in thread
From: Justin Mattock @ 2010-05-03  4:54 UTC (permalink / raw)
  To: SE-Linux; +Cc: tresys

I've been racking my brain for the last few days on
this one, and seem(for the life of me), have no solution.

at first thought this was opensuse specific, but it's not
i.g. my cblfs systems hit this as well(if not all systems at that).

when adding /etc/initscript somehow SELinux can't figure how to
transistion with the whole SHELL -c thing.

under init.c #800(sysvinit-2.85)
the code is this:

 /* See if there is an "initscript" (except in single user mode). */
  if (access(INITSCRIPT, R_OK) == 0 && runlevel != 'S') {
	/* Build command line using "initscript" */
	args[1] = SHELL;
	args[2] = INITSCRIPT;
	args[3] = ch->id;
	args[4] = ch->rlevel;
	args[5] = "unknown";
	for(f = 0; actions[f].name; f++) {
		if (ch->action == actions[f].act) {
			args[5] = actions[f].name;
			break;
		}
	}


any ideas why SELinux gets confused with this, and
doesn't want to transistion?


-- 
Justin P. Mattock

--
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] 16+ messages in thread

end of thread, other threads:[~2010-05-11  2:42 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-03  4:54 /etc/initscript breaks SELinux Justin Mattock
2010-05-03  4:54 ` [refpolicy] " Justin Mattock
2010-05-03 16:31 ` Stephen Smalley
2010-05-03 16:31   ` [refpolicy] " Stephen Smalley
2010-05-03 16:56   ` Justin P. Mattock
2010-05-03 16:56     ` [refpolicy] " Justin P. Mattock
2010-05-03 17:02     ` Stephen Smalley
2010-05-03 17:02       ` [refpolicy] " Stephen Smalley
2010-05-03 17:29       ` Justin P. Mattock
2010-05-03 17:29         ` [refpolicy] " Justin P. Mattock
2010-05-03 17:32         ` Stephen Smalley
2010-05-03 17:32           ` [refpolicy] " Stephen Smalley
2010-05-03 17:58           ` Justin P. Mattock
2010-05-03 17:58             ` [refpolicy] " Justin P. Mattock
2010-05-11  2:42           ` Justin P. Mattock
2010-05-11  2:42             ` [refpolicy] " Justin P. Mattock

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.