Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
39d84824
Commit
39d84824
authored
Mar 30, 2017
by
John Johansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apparmor: provide information about path buffer size at boot
Signed-off-by:
John Johansen
<
john.johansen@canonical.com
>
parent
4f3b3f2d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
security/apparmor/lsm.c
security/apparmor/lsm.c
+9
-2
No files found.
security/apparmor/lsm.c
View file @
39d84824
...
@@ -774,11 +774,18 @@ static int param_get_aabool(char *buffer, const struct kernel_param *kp)
...
@@ -774,11 +774,18 @@ static int param_get_aabool(char *buffer, const struct kernel_param *kp)
static
int
param_set_aauint
(
const
char
*
val
,
const
struct
kernel_param
*
kp
)
static
int
param_set_aauint
(
const
char
*
val
,
const
struct
kernel_param
*
kp
)
{
{
int
error
;
if
(
!
apparmor_enabled
)
if
(
!
apparmor_enabled
)
return
-
EINVAL
;
return
-
EINVAL
;
if
(
apparmor_initialized
&&
!
policy_admin_capable
(
NULL
))
/* file is ro but enforce 2nd line check */
if
(
apparmor_initialized
)
return
-
EPERM
;
return
-
EPERM
;
return
param_set_uint
(
val
,
kp
);
error
=
param_set_uint
(
val
,
kp
);
pr_info
(
"AppArmor: buffer size set to %d bytes
\n
"
,
aa_g_path_max
);
return
error
;
}
}
static
int
param_get_aauint
(
char
*
buffer
,
const
struct
kernel_param
*
kp
)
static
int
param_get_aauint
(
char
*
buffer
,
const
struct
kernel_param
*
kp
)
...
...
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