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
ac714805
Unverified
Commit
ac714805
authored
Nov 16, 2018
by
Christian Brauner
Committed by
GitHub
Nov 16, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2727 from Blub/2018-11-16/apparmor.ro-bind-remount-combinations
apparmor: allow various remount,bind options
parents
c891ab35
e6ec0a9e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
18 deletions
+29
-18
container-base
config/apparmor/abstractions/container-base
+10
-0
container-base.in
config/apparmor/abstractions/container-base.in
+10
-1
apparmor.c
src/lxc/lsm/apparmor.c
+9
-17
No files found.
config/apparmor/abstractions/container-base
View file @
ac714805
...
...
@@ -120,6 +120,16 @@
mount options=(rw,bind) /sy[^s]*{,/**},
mount options=(rw,bind) /sys?*{,/**},
# allow various ro-bind-*re*-mounts
mount options=(ro,remount,bind),
mount options=(ro,remount,bind,nosuid),
mount options=(ro,remount,bind,noexec),
mount options=(ro,remount,bind,nodev),
mount options=(ro,remount,bind,nosuid,noexec),
mount options=(ro,remount,bind,noexec,nodev),
mount options=(ro,remount,bind,nodev,nosuid),
mount options=(ro,remount,bind,nosuid,noexec,nodev),
# allow moving mounts except for /proc, /sys and /dev
mount options=(rw,move) /[^spd]*{,/**},
mount options=(rw,move) /d[^e]*{,/**},
...
...
config/apparmor/abstractions/container-base.in
View file @
ac714805
...
...
@@ -119,6 +119,16 @@
mount options=(rw,bind) /sy[^s]*{,/**},
mount options=(rw,bind) /sys?*{,/**},
# allow various ro-bind-*re*-mounts
mount options=(ro,remount,bind),
mount options=(ro,remount,bind,nosuid),
mount options=(ro,remount,bind,noexec),
mount options=(ro,remount,bind,nodev),
mount options=(ro,remount,bind,nosuid,noexec),
mount options=(ro,remount,bind,noexec,nodev),
mount options=(ro,remount,bind,nodev,nosuid),
mount options=(ro,remount,bind,nosuid,noexec,nodev),
# allow moving mounts except for /proc, /sys and /dev
mount options=(rw,move) /[^spd]*{,/**},
mount options=(rw,move) /d[^e]*{,/**},
...
...
@@ -136,4 +146,3 @@
mount options=(rw,move) /s[^y]*{,/**},
mount options=(rw,move) /sy[^s]*{,/**},
mount options=(rw,move) /sys?*{,/**},
src/lxc/lsm/apparmor.c
View file @
ac714805
...
...
@@ -167,23 +167,15 @@ static const char AA_PROFILE_BASE[] =
" mount options=(rw,bind) /sy[^s]*{,/**},
\n
"
" mount options=(rw,bind) /sys?*{,/**},
\n
"
"
\n
"
" # allow read-only bind-mounts of anything except /proc, /sys and /dev
\n
"
" mount options=(ro,remount,bind) -> /[^spd]*{,/**},
\n
"
" mount options=(ro,remount,bind) -> /d[^e]*{,/**},
\n
"
" mount options=(ro,remount,bind) -> /de[^v]*{,/**},
\n
"
" mount options=(ro,remount,bind) -> /dev/.[^l]*{,/**},
\n
"
" mount options=(ro,remount,bind) -> /dev/.l[^x]*{,/**},
\n
"
" mount options=(ro,remount,bind) -> /dev/.lx[^c]*{,/**},
\n
"
" mount options=(ro,remount,bind) -> /dev/.lxc?*{,/**},
\n
"
" mount options=(ro,remount,bind) -> /dev/[^.]*{,/**},
\n
"
" mount options=(ro,remount,bind) -> /dev?*{,/**},
\n
"
" mount options=(ro,remount,bind) -> /p[^r]*{,/**},
\n
"
" mount options=(ro,remount,bind) -> /pr[^o]*{,/**},
\n
"
" mount options=(ro,remount,bind) -> /pro[^c]*{,/**},
\n
"
" mount options=(ro,remount,bind) -> /proc?*{,/**},
\n
"
" mount options=(ro,remount,bind) -> /s[^y]*{,/**},
\n
"
" mount options=(ro,remount,bind) -> /sy[^s]*{,/**},
\n
"
" mount options=(ro,remount,bind) -> /sys?*{,/**},
\n
"
" # allow various ro-bind-*re*-mounts
\n
"
" mount options=(ro,remount,bind),
\n
"
" mount options=(ro,remount,bind,nosuid),
\n
"
" mount options=(ro,remount,bind,noexec),
\n
"
" mount options=(ro,remount,bind,nodev),
\n
"
" mount options=(ro,remount,bind,nosuid,noexec),
\n
"
" mount options=(ro,remount,bind,noexec,nodev),
\n
"
" mount options=(ro,remount,bind,nodev,nosuid),
\n
"
" mount options=(ro,remount,bind,nosuid,noexec,nodev),
\n
"
"
\n
"
" # allow moving mounts except for /proc, /sys and /dev
\n
"
" mount options=(rw,move) /[^spd]*{,/**},
\n
"
...
...
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