All of lore.kernel.org
 help / color / mirror / Atom feed
* creating a new role/user to administer a service
@ 2007-01-04 10:55 Ronan Waide
  2007-01-05 15:26 ` Stephen Smalley
  0 siblings, 1 reply; 5+ messages in thread
From: Ronan Waide @ 2007-01-04 10:55 UTC (permalink / raw)
  To: SE Linux

Hi,

I've been digging through SELinux by example, the list archives, Dan
Walsh's livejournal, and the Fedora strict policy source, but I'm still
a bit stumped on how to get this working:

I'd like to create an administrative role/user for BIND. specifically, I
do not, if possible, want to use something like sysadm_r; I would rather
that otherwise unprivileged users are either designated as bindadm_u
from login, or newrole into bindadm_r in order to manage the daemon. The
former is preferable, as I was hoping to make use of ssh keys to enable
remote management without multiple password entry.

After several false starts I thought I had something with the following
(requires trimmed):

------
type bindadm_t;
role bindadm_r types { bindadm_t };
gen_user( bindadm_u, staff, bindadm_r, s0, s0 - s15:c0.c1023, c0.c1024
);

semanage login -a -s bindadm_u -r bindadm_r waider
------

I began tracking the AVC violations that logging in with this account
caused, and got as far as being able to get a shell prompt with the
context bindadm_u:bindadm_r:user_t. At this point I tried getting
newrole -t bindadm_t to work, but couldn't get past the password check
requirement (allow bindadm_r chkpasswd_exec_t) since nothing I did
seemed to resolve the violation.

At this point I am, as I said, stumped. I feel like I'm missing
something obvious, but after several weeks of reading I'm still no
closer to the answer. Perhaps someone could shed some light on this, or
perhaps point me at a suitable role/user-addition document?

Cheers,
Waider.
-- 
Ronan Waide / TechOps EU Systems Engineer / waider@amazon.com


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

end of thread, other threads:[~2007-01-05 16:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-04 10:55 creating a new role/user to administer a service Ronan Waide
2007-01-05 15:26 ` Stephen Smalley
2007-01-05 15:55   ` Karl MacMillan
2007-01-05 16:48     ` Christopher J. PeBenito
2007-01-05 16:56       ` Karl MacMillan

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.