Gentoo Archives: gentoo-security

From: Chris PeBenito <pebenito@g.o>
To: fisch <fisch@××××××××××××.de>
Cc: gentoo-security@l.g.o
Subject: Re: [gentoo-security] SELinux and user-crontab
Date: Thu, 15 Jan 2004 19:38:05
Message-Id: 1074195349.5176.79.camel@chris.pebenito.net
In Reply to: Re: [gentoo-security] SELinux and user-crontab by fisch
1 On Thu, 2004-01-15 at 05:25, fisch wrote:
2 > I start ssh at boot (rc-update add sshd default) - is that the problem?
3
4 No, this works. Make sure that sshd runs in system_u:system_r:sshd_t
5 (you can see by doing ps -AZ).
6
7 > > > b) user bob can't create a crontab for themself
8 > > > what I have to do?
9 >
10 > my user bob:
11 > uid=1001(bob) gid=408(cms) groups=408(cms),100(users)
12 > context=bob:user_r:user_t
13
14 Ok, theres two things to do. Add your user bob to the cron group
15 (usermod -G). Then apply the attached patch to your policy:
16
17 cd /etc/security/selinux/src/policy
18 patch -p1 < /path/to/opt.diff
19 make load
20
21 Then everything should work. The attached patch has already been
22 applied to the cvs base-policy.
23
24 --
25 Chris PeBenito
26 <pebenito@g.o>
27 Developer,
28 Hardened Gentoo Linux
29 Embedded Gentoo Linux
30
31 Public Key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE6AF9243
32 Key fingerprint = B0E6 877A 883F A57A 8E6A CB00 BC8E E42D E6AF 9243

Attachments

File name MIME type
opt.diff text/x-patch
signature.asc application/pgp-signature