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
014149cc
Commit
014149cc
authored
May 23, 2006
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] deprecate AUDIT_POSSBILE
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
d8945bb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
kernel/auditfilter.c
kernel/auditfilter.c
+5
-3
kernel/auditsc.c
kernel/auditsc.c
+0
-1
No files found.
kernel/auditfilter.c
View file @
014149cc
...
@@ -128,8 +128,11 @@ static inline struct audit_entry *audit_to_entry_common(struct audit_rule *rule)
...
@@ -128,8 +128,11 @@ static inline struct audit_entry *audit_to_entry_common(struct audit_rule *rule)
#endif
#endif
;
;
}
}
if
(
rule
->
action
!=
AUDIT_NEVER
&&
rule
->
action
!=
AUDIT_POSSIBLE
&&
if
(
unlikely
(
rule
->
action
==
AUDIT_POSSIBLE
))
{
rule
->
action
!=
AUDIT_ALWAYS
)
printk
(
KERN_ERR
"AUDIT_POSSIBLE is deprecated
\n
"
);
goto
exit_err
;
}
if
(
rule
->
action
!=
AUDIT_NEVER
&&
rule
->
action
!=
AUDIT_ALWAYS
)
goto
exit_err
;
goto
exit_err
;
if
(
rule
->
field_count
>
AUDIT_MAX_FIELDS
)
if
(
rule
->
field_count
>
AUDIT_MAX_FIELDS
)
goto
exit_err
;
goto
exit_err
;
...
@@ -734,7 +737,6 @@ static int audit_filter_user_rules(struct netlink_skb_parms *cb,
...
@@ -734,7 +737,6 @@ static int audit_filter_user_rules(struct netlink_skb_parms *cb,
}
}
switch
(
rule
->
action
)
{
switch
(
rule
->
action
)
{
case
AUDIT_NEVER
:
*
state
=
AUDIT_DISABLED
;
break
;
case
AUDIT_NEVER
:
*
state
=
AUDIT_DISABLED
;
break
;
case
AUDIT_POSSIBLE
:
*
state
=
AUDIT_BUILD_CONTEXT
;
break
;
case
AUDIT_ALWAYS
:
*
state
=
AUDIT_RECORD_CONTEXT
;
break
;
case
AUDIT_ALWAYS
:
*
state
=
AUDIT_RECORD_CONTEXT
;
break
;
}
}
return
1
;
return
1
;
...
...
kernel/auditsc.c
View file @
014149cc
...
@@ -307,7 +307,6 @@ static int audit_filter_rules(struct task_struct *tsk,
...
@@ -307,7 +307,6 @@ static int audit_filter_rules(struct task_struct *tsk,
}
}
switch
(
rule
->
action
)
{
switch
(
rule
->
action
)
{
case
AUDIT_NEVER
:
*
state
=
AUDIT_DISABLED
;
break
;
case
AUDIT_NEVER
:
*
state
=
AUDIT_DISABLED
;
break
;
case
AUDIT_POSSIBLE
:
*
state
=
AUDIT_BUILD_CONTEXT
;
break
;
case
AUDIT_ALWAYS
:
*
state
=
AUDIT_RECORD_CONTEXT
;
break
;
case
AUDIT_ALWAYS
:
*
state
=
AUDIT_RECORD_CONTEXT
;
break
;
}
}
return
1
;
return
1
;
...
...
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