I am unable to get a jail to inherit mac.do settings for a user in group wheel.
Host is set up to use mdo:
mdo works fine with uid 1001 in the host.
I have set up a VNET jail using bastille and used the following to set inherit on the jail:
Console into jail and checking sysctl shows the jail has inherited the mac.do rules
But actual execution of mdo by uid 1001 in the jail fails:
Here is the info about the user and the groups:
I've tried putting the rules into the mac.do rules for the jail and this has not worked either. Any thoughts on what I can do next to get this wot work?
Host is set up to use mdo:
Bash:
/usr/local/bastille/jails $ mdo sysctl security.mac.do
security.mac.do.rules: gid=0>uid=0,gid=*,+gid=*
security.mac.do.print_parse_error: 1
security.mac.do.enabled: 1
mdo works fine with uid 1001 in the host.
I have set up a VNET jail using bastille and used the following to set inherit on the jail:
Bash:
mdo jail -m -n daredevil mac.do='inherit'
Console into jail and checking sysctl shows the jail has inherited the mac.do rules
Bash:
/usr/local/bastille/jails $ mdo bastille console daredevil
[daredevil]:
root@daredevil:~ # sysctl security.mac.do
security.mac.do.rules: gid=0>uid=0,gid=*,+gid=*
security.mac.do.print_parse_error: 1
security.mac.do.enabled: 1
But actual execution of mdo by uid 1001 in the jail fails:
Bash:
root@daredevil:~ # su - build
Nice bash prompt: PS1='(\[$(tput md)\]\t <\w>\[$(tput me)\]) $(echo $?) \$ '
-- Mathieu <mathieu@hal.interactionvirtuelle.com>
build@daredevil:~ $ mdo ls
mdo: setcred(): Operation not permitted
Here is the info about the user and the groups:
Bash:
root@daredevil:~ # pw user show build -P
Login Name: build #1001 Group: build #1001
Full Name: User Build
Home: /home/build Class:
Shell: /bin/sh Office: [None]
Work Phone: [None] Home Phone: [None]
Acc Expire: [None] Pwd Expire: [None]
Groups: wheel
root@daredevil:~ # pw group show wheel -P
Group Name: wheel #0
Members: root,build
I've tried putting the rules into the mac.do rules for the jail and this has not worked either. Any thoughts on what I can do next to get this wot work?