forked from AshleyYakeley/NixVirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request AshleyYakeley#38 from umbra/master
Add LXC exclusive attributes
- Loading branch information
Showing
4 changed files
with
158 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<domain> | ||
<name>test-lxc</name> | ||
<uuid>b208ceff-2501-4903-98eb-7421a4e1a895</uuid> | ||
<os> | ||
<type arch='x86_64'>exe</type> | ||
<init>/bin/systemd</init> | ||
<initarg>--unit emergency.service</initarg> | ||
</os> | ||
<features> | ||
<privnet/> | ||
<capabilities policy='default'> | ||
<audit_control state='off'/> | ||
<audit_read state='on'/> | ||
<audit_write state='off'/> | ||
<block_suspend state='off'/> | ||
<bpf state='off'/> | ||
<checkpoint_restore state='off'/> | ||
<dac_override state='off'/> | ||
<dac_read_search state='off'/> | ||
<fowner state='off'/> | ||
<fsetid state='off'/> | ||
<ipc_lock state='off'/> | ||
<ipc_owner state='off'/> | ||
<kill state='on'/> | ||
<lease state='off'/> | ||
<linux_immutable state='off'/> | ||
<mac_admin state='off'/> | ||
<mac_override state='off'/> | ||
<mknod state='off'/> | ||
<net_admin state='off'/> | ||
<net_bind_service state='off'/> | ||
<net_broadcast state='on'/> | ||
<net_raw state='off'/> | ||
<perfmon state='off'/> | ||
<setfcap state='off'/> | ||
<setgid state='off'/> | ||
<setpcap state='off'/> | ||
<setuid state='on'/> | ||
<syslog state='on'/> | ||
<sys_admin state='on'/> | ||
<sys_boot state='off'/> | ||
<sys_chroot state='off'/> | ||
<sys_module state='off'/> | ||
<sys_nice state='on'/> | ||
<sys_pacct state='off'/> | ||
<sys_ptrace state='off'/> | ||
<sys_rawio state='off'/> | ||
<sys_resource state='off'/> | ||
<sys_time state='on'/> | ||
<sys_tty_config state='off'/> | ||
<wake_alarm state='off'/> | ||
</capabilities> | ||
</features> | ||
</domain> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ ... }: | ||
{ | ||
name = "test-lxc"; | ||
uuid = "b208ceff-2501-4903-98eb-7421a4e1a895"; | ||
os = { | ||
type = "exe"; | ||
arch = "x86_64"; | ||
init = /bin/systemd; | ||
initarg = "--unit emergency.service"; | ||
}; | ||
features = { | ||
privnet = {}; | ||
capabilities = { | ||
policy = "default"; | ||
audit_control.state = false; | ||
audit_read.state = true; | ||
audit_write.state = false; | ||
block_suspend.state = false; | ||
bpf.state = false; | ||
checkpoint_restore.state = false; | ||
dac_override.state = false; | ||
dac_read_search.state = false; | ||
fowner.state = false; | ||
fsetid.state = false; | ||
ipc_lock.state = false; | ||
ipc_owner.state = false; | ||
kill.state = true; | ||
lease.state = false; | ||
linux_immutable.state = false; | ||
mac_admin.state = false; | ||
mac_override.state = false; | ||
mknod.state = false; | ||
net_admin.state = false; | ||
net_bind_service.state = false; | ||
net_broadcast.state = true; | ||
net_raw.state = false; | ||
perfmon.state = false; | ||
setfcap.state = false; | ||
setgid.state = false; | ||
setpcap.state = false; | ||
setuid.state = true; | ||
syslog.state = true; | ||
sys_admin.state = true; | ||
sys_boot.state = false; | ||
sys_chroot.state = false; | ||
sys_module.state = false; | ||
sys_nice.state = true; | ||
sys_pacct.state = false; | ||
sys_ptrace.state = false; | ||
sys_rawio.state = false; | ||
sys_resource.state = false; | ||
sys_time.state = true; | ||
sys_tty_config.state = false; | ||
wake_alarm.state = false; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters