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
nexedi
linux
Commits
8bd10763
Commit
8bd10763
authored
Nov 20, 2016
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
audit_log_{name,link_denied}: constify struct path
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
40212d53
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
include/linux/audit.h
include/linux/audit.h
+1
-1
kernel/audit.c
kernel/audit.c
+2
-2
kernel/audit.h
kernel/audit.h
+1
-1
No files found.
include/linux/audit.h
View file @
8bd10763
...
...
@@ -147,7 +147,7 @@ extern void audit_log_d_path(struct audit_buffer *ab,
extern
void
audit_log_key
(
struct
audit_buffer
*
ab
,
char
*
key
);
extern
void
audit_log_link_denied
(
const
char
*
operation
,
struct
path
*
link
);
const
struct
path
*
link
);
extern
void
audit_log_lost
(
const
char
*
message
);
#ifdef CONFIG_SECURITY
extern
void
audit_log_secctx
(
struct
audit_buffer
*
ab
,
u32
secid
);
...
...
kernel/audit.c
View file @
8bd10763
...
...
@@ -1760,7 +1760,7 @@ void audit_copy_inode(struct audit_names *name, const struct dentry *dentry,
* @call_panic: optional pointer to int that will be updated if secid fails
*/
void
audit_log_name
(
struct
audit_context
*
context
,
struct
audit_names
*
n
,
struct
path
*
path
,
int
record_num
,
int
*
call_panic
)
const
struct
path
*
path
,
int
record_num
,
int
*
call_panic
)
{
struct
audit_buffer
*
ab
;
ab
=
audit_log_start
(
context
,
GFP_KERNEL
,
AUDIT_PATH
);
...
...
@@ -1948,7 +1948,7 @@ EXPORT_SYMBOL(audit_log_task_info);
* @operation: specific link operation
* @link: the path that triggered the restriction
*/
void
audit_log_link_denied
(
const
char
*
operation
,
struct
path
*
link
)
void
audit_log_link_denied
(
const
char
*
operation
,
const
struct
path
*
link
)
{
struct
audit_buffer
*
ab
;
struct
audit_names
*
name
;
...
...
kernel/audit.h
View file @
8bd10763
...
...
@@ -212,7 +212,7 @@ extern void audit_copy_inode(struct audit_names *name,
extern
void
audit_log_cap
(
struct
audit_buffer
*
ab
,
char
*
prefix
,
kernel_cap_t
*
cap
);
extern
void
audit_log_name
(
struct
audit_context
*
context
,
struct
audit_names
*
n
,
struct
path
*
path
,
struct
audit_names
*
n
,
const
struct
path
*
path
,
int
record_num
,
int
*
call_panic
);
extern
int
audit_pid
;
...
...
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