Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
d378aebe
Commit
d378aebe
authored
Jan 07, 2013
by
Dwight Engen
Committed by
Stéphane Graber
Jan 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oracle template: drop additional capabilities
Signed-off-by:
Dwight Engen
<
dwight.engen@oracle.com
>
Acked-by:
Serge E. Hallyn
<
serge.hallyn@ubuntu.com
>
parent
76848789
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
2 deletions
+24
-2
lxc-oracle.in
templates/lxc-oracle.in
+24
-2
No files found.
templates/lxc-oracle.in
View file @
d378aebe
...
...
@@ -292,10 +292,32 @@ lxc.tty = 4
lxc.pts = 1024
lxc.rootfs =
$container_rootfs
lxc.mount =
$cfg_dir
/fstab
lxc.cap.drop = sys_rawio
# Networking
# Uncomment these if you don't run anything that needs the capability, and
# would like the container to run with less privilege.
#
# Dropping sys_admin disables container root from doing a lot of things
# that could be bad like re-mounting lxc fstab entries rw for example,
# but also disables some useful things like being able to nfs mount, and
# things that are already namespaced with ns_capable() kernel checks, like
# hostname(1).
# lxc.cap.drop = sys_admin
# lxc.cap.drop = net_raw # breaks dhcp/ping
# lxc.cap.drop = setgid # breaks login (initgroups/setgroups)
# lxc.cap.drop = dac_read_search # breaks login (pam unix_chkpwd)
# lxc.cap.drop = setuid # breaks sshd,nfs statd
# lxc.cap.drop = audit_control # breaks sshd (set_loginuid failed)
# lxc.cap.drop = audit_write
#
lxc.cap.drop = mac_admin mac_override setfcap setpcap
lxc.cap.drop = sys_module sys_nice sys_pacct
lxc.cap.drop = sys_rawio sys_time
EOF
if
[
$container_release_major
!=
"4"
]
;
then
echo
"lxc.cap.drop = sys_resource"
>>
$cfg_dir
/config
fi
echo
"# Networking"
>>
$cfg_dir
/config
# see if the network settings were already specified
lxc_network_type
=
`
grep
'^lxc.network.type'
$cfg_dir
/config |
awk
-F
'[= \t]+'
'{ print $2 }'
`
if
[
-z
"
$lxc_network_type
"
-a
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment