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
737340a2
Unverified
Commit
737340a2
authored
Oct 02, 2017
by
Tycho Andersen
Committed by
Stéphane Graber
Oct 04, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drop useless apparmor denies
mem and kmem are really in /dev, so this does us no good. Signed-off-by:
Tycho Andersen
<
tycho@tycho.ws
>
parent
3400d77a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
5 deletions
+1
-5
container-base
config/apparmor/abstractions/container-base
+0
-2
container-base.in
config/apparmor/abstractions/container-base.in
+0
-2
aa.c
src/tests/aa.c
+1
-1
No files found.
config/apparmor/abstractions/container-base
View file @
737340a2
...
@@ -72,8 +72,6 @@
...
@@ -72,8 +72,6 @@
# block some other dangerous paths
# block some other dangerous paths
deny @{PROC}/kcore rwklx,
deny @{PROC}/kcore rwklx,
deny @{PROC}/kmem rwklx,
deny @{PROC}/mem rwklx,
deny @{PROC}/sysrq-trigger rwklx,
deny @{PROC}/sysrq-trigger rwklx,
# deny writes in /sys except for /sys/fs/cgroup, also allow
# deny writes in /sys except for /sys/fs/cgroup, also allow
...
...
config/apparmor/abstractions/container-base.in
View file @
737340a2
...
@@ -72,8 +72,6 @@
...
@@ -72,8 +72,6 @@
# block some other dangerous paths
# block some other dangerous paths
deny @{PROC}/kcore rwklx,
deny @{PROC}/kcore rwklx,
deny @{PROC}/kmem rwklx,
deny @{PROC}/mem rwklx,
deny @{PROC}/sysrq-trigger rwklx,
deny @{PROC}/sysrq-trigger rwklx,
# deny writes in /sys except for /sys/fs/cgroup, also allow
# deny writes in /sys except for /sys/fs/cgroup, also allow
...
...
src/tests/aa.c
View file @
737340a2
...
@@ -105,7 +105,7 @@ char *files_to_allow[] = { "/sys/class/net/lo/ifalias",
...
@@ -105,7 +105,7 @@ char *files_to_allow[] = { "/sys/class/net/lo/ifalias",
"/proc/sys/kernel/shmmax"
,
"/proc/sys/kernel/shmmax"
,
NULL
};
NULL
};
char
*
files_to_deny
[]
=
{
"/proc/mem"
,
"/proc/kmem"
,
char
*
files_to_deny
[]
=
{
"/sys/kernel/uevent_helper"
,
"/sys/kernel/uevent_helper"
,
"/proc/sys/fs/file-nr"
,
"/proc/sys/fs/file-nr"
,
"/sys/kernel/mm/ksm/pages_to_scan"
,
"/sys/kernel/mm/ksm/pages_to_scan"
,
...
...
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