Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
dc104fb3
Commit
dc104fb3
authored
Aug 31, 2006
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] audit: more syscall classes added
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
c0803799
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
139 additions
and
0 deletions
+139
-0
arch/i386/kernel/audit.c
arch/i386/kernel/audit.c
+12
-0
arch/ia64/ia32/audit.c
arch/ia64/ia32/audit.c
+10
-0
arch/ia64/kernel/audit.c
arch/ia64/kernel/audit.c
+16
-0
arch/powerpc/kernel/audit.c
arch/powerpc/kernel/audit.c
+16
-0
arch/powerpc/kernel/compat_audit.c
arch/powerpc/kernel/compat_audit.c
+10
-0
arch/s390/kernel/audit.c
arch/s390/kernel/audit.c
+16
-0
arch/s390/kernel/compat_audit.c
arch/s390/kernel/compat_audit.c
+10
-0
arch/x86_64/ia32/audit.c
arch/x86_64/ia32/audit.c
+10
-0
arch/x86_64/kernel/audit.c
arch/x86_64/kernel/audit.c
+16
-0
include/asm-generic/audit_read.h
include/asm-generic/audit_read.h
+8
-0
include/asm-generic/audit_write.h
include/asm-generic/audit_write.h
+11
-0
include/linux/audit.h
include/linux/audit.h
+4
-0
No files found.
arch/i386/kernel/audit.c
View file @
dc104fb3
...
...
@@ -8,6 +8,16 @@ static unsigned dir_class[] = {
~
0U
};
static
unsigned
read_class
[]
=
{
#include <asm-generic/audit_read.h>
~
0U
};
static
unsigned
write_class
[]
=
{
#include <asm-generic/audit_write.h>
~
0U
};
static
unsigned
chattr_class
[]
=
{
#include <asm-generic/audit_change_attr.h>
~
0U
...
...
@@ -15,6 +25,8 @@ static unsigned chattr_class[] = {
static
int
__init
audit_classes_init
(
void
)
{
audit_register_class
(
AUDIT_CLASS_WRITE
,
write_class
);
audit_register_class
(
AUDIT_CLASS_READ
,
read_class
);
audit_register_class
(
AUDIT_CLASS_DIR_WRITE
,
dir_class
);
audit_register_class
(
AUDIT_CLASS_CHATTR
,
chattr_class
);
return
0
;
...
...
arch/ia64/ia32/audit.c
View file @
dc104fb3
...
...
@@ -9,3 +9,13 @@ unsigned ia32_chattr_class[] = {
#include <asm-generic/audit_change_attr.h>
~
0U
};
unsigned
ia32_write_class
[]
=
{
#include <asm-generic/audit_write.h>
~
0U
};
unsigned
ia32_read_class
[]
=
{
#include <asm-generic/audit_read.h>
~
0U
};
arch/ia64/kernel/audit.c
View file @
dc104fb3
...
...
@@ -8,6 +8,16 @@ static unsigned dir_class[] = {
~
0U
};
static
unsigned
read_class
[]
=
{
#include <asm-generic/audit_read.h>
~
0U
};
static
unsigned
write_class
[]
=
{
#include <asm-generic/audit_write.h>
~
0U
};
static
unsigned
chattr_class
[]
=
{
#include <asm-generic/audit_change_attr.h>
~
0U
...
...
@@ -17,10 +27,16 @@ static int __init audit_classes_init(void)
{
#ifdef CONFIG_IA32_SUPPORT
extern
__u32
ia32_dir_class
[];
extern
__u32
ia32_write_class
[];
extern
__u32
ia32_read_class
[];
extern
__u32
ia32_chattr_class
[];
audit_register_class
(
AUDIT_CLASS_WRITE_32
,
ia32_write_class
);
audit_register_class
(
AUDIT_CLASS_READ_32
,
ia32_read_class
);
audit_register_class
(
AUDIT_CLASS_DIR_WRITE_32
,
ia32_dir_class
);
audit_register_class
(
AUDIT_CLASS_CHATTR_32
,
ia32_chattr_class
);
#endif
audit_register_class
(
AUDIT_CLASS_WRITE
,
write_class
);
audit_register_class
(
AUDIT_CLASS_READ
,
read_class
);
audit_register_class
(
AUDIT_CLASS_DIR_WRITE
,
dir_class
);
audit_register_class
(
AUDIT_CLASS_CHATTR
,
chattr_class
);
return
0
;
...
...
arch/powerpc/kernel/audit.c
View file @
dc104fb3
...
...
@@ -8,6 +8,16 @@ static unsigned dir_class[] = {
~
0U
};
static
unsigned
read_class
[]
=
{
#include <asm-generic/audit_read.h>
~
0U
};
static
unsigned
write_class
[]
=
{
#include <asm-generic/audit_write.h>
~
0U
};
static
unsigned
chattr_class
[]
=
{
#include <asm-generic/audit_change_attr.h>
~
0U
...
...
@@ -17,10 +27,16 @@ static int __init audit_classes_init(void)
{
#ifdef CONFIG_PPC64
extern
__u32
ppc32_dir_class
[];
extern
__u32
ppc32_write_class
[];
extern
__u32
ppc32_read_class
[];
extern
__u32
ppc32_chattr_class
[];
audit_register_class
(
AUDIT_CLASS_WRITE_32
,
ppc32_write_class
);
audit_register_class
(
AUDIT_CLASS_READ_32
,
ppc32_read_class
);
audit_register_class
(
AUDIT_CLASS_DIR_WRITE_32
,
ppc32_dir_class
);
audit_register_class
(
AUDIT_CLASS_CHATTR_32
,
ppc32_chattr_class
);
#endif
audit_register_class
(
AUDIT_CLASS_WRITE
,
write_class
);
audit_register_class
(
AUDIT_CLASS_READ
,
read_class
);
audit_register_class
(
AUDIT_CLASS_DIR_WRITE
,
dir_class
);
audit_register_class
(
AUDIT_CLASS_CHATTR
,
chattr_class
);
return
0
;
...
...
arch/powerpc/kernel/compat_audit.c
View file @
dc104fb3
...
...
@@ -10,3 +10,13 @@ unsigned ppc32_chattr_class[] = {
#include <asm-generic/audit_change_attr.h>
~
0U
};
unsigned
ppc32_write_class
[]
=
{
#include <asm-generic/audit_write.h>
~
0U
};
unsigned
ppc32_read_class
[]
=
{
#include <asm-generic/audit_read.h>
~
0U
};
arch/s390/kernel/audit.c
View file @
dc104fb3
...
...
@@ -8,6 +8,16 @@ static unsigned dir_class[] = {
~
0U
};
static
unsigned
read_class
[]
=
{
#include <asm-generic/audit_read.h>
~
0U
};
static
unsigned
write_class
[]
=
{
#include <asm-generic/audit_write.h>
~
0U
};
static
unsigned
chattr_class
[]
=
{
#include <asm-generic/audit_change_attr.h>
~
0U
...
...
@@ -17,10 +27,16 @@ static int __init audit_classes_init(void)
{
#ifdef CONFIG_COMPAT
extern
__u32
s390_dir_class
[];
extern
__u32
s390_write_class
[];
extern
__u32
s390_read_class
[];
extern
__u32
s390_chattr_class
[];
audit_register_class
(
AUDIT_CLASS_WRITE_32
,
s390_write_class
);
audit_register_class
(
AUDIT_CLASS_READ_32
,
s390_read_class
);
audit_register_class
(
AUDIT_CLASS_DIR_WRITE_32
,
s390_dir_class
);
audit_register_class
(
AUDIT_CLASS_CHATTR_32
,
s390_chattr_class
);
#endif
audit_register_class
(
AUDIT_CLASS_WRITE
,
write_class
);
audit_register_class
(
AUDIT_CLASS_READ
,
read_class
);
audit_register_class
(
AUDIT_CLASS_DIR_WRITE
,
dir_class
);
audit_register_class
(
AUDIT_CLASS_CHATTR
,
chattr_class
);
return
0
;
...
...
arch/s390/kernel/compat_audit.c
View file @
dc104fb3
...
...
@@ -10,3 +10,13 @@ unsigned s390_chattr_class[] = {
#include <asm-generic/audit_change_attr.h>
~
0U
};
unsigned
s390_write_class
[]
=
{
#include <asm-generic/audit_write.h>
~
0U
};
unsigned
s390_read_class
[]
=
{
#include <asm-generic/audit_read.h>
~
0U
};
arch/x86_64/ia32/audit.c
View file @
dc104fb3
...
...
@@ -9,3 +9,13 @@ unsigned ia32_chattr_class[] = {
#include <asm-generic/audit_change_attr.h>
~
0U
};
unsigned
ia32_write_class
[]
=
{
#include <asm-generic/audit_write.h>
~
0U
};
unsigned
ia32_read_class
[]
=
{
#include <asm-generic/audit_read.h>
~
0U
};
arch/x86_64/kernel/audit.c
View file @
dc104fb3
...
...
@@ -8,6 +8,16 @@ static unsigned dir_class[] = {
~
0U
};
static
unsigned
read_class
[]
=
{
#include <asm-generic/audit_read.h>
~
0U
};
static
unsigned
write_class
[]
=
{
#include <asm-generic/audit_write.h>
~
0U
};
static
unsigned
chattr_class
[]
=
{
#include <asm-generic/audit_change_attr.h>
~
0U
...
...
@@ -17,10 +27,16 @@ static int __init audit_classes_init(void)
{
#ifdef CONFIG_IA32_EMULATION
extern
__u32
ia32_dir_class
[];
extern
__u32
ia32_write_class
[];
extern
__u32
ia32_read_class
[];
extern
__u32
ia32_chattr_class
[];
audit_register_class
(
AUDIT_CLASS_WRITE_32
,
ia32_write_class
);
audit_register_class
(
AUDIT_CLASS_READ_32
,
ia32_read_class
);
audit_register_class
(
AUDIT_CLASS_DIR_WRITE_32
,
ia32_dir_class
);
audit_register_class
(
AUDIT_CLASS_CHATTR_32
,
ia32_chattr_class
);
#endif
audit_register_class
(
AUDIT_CLASS_WRITE
,
write_class
);
audit_register_class
(
AUDIT_CLASS_READ
,
read_class
);
audit_register_class
(
AUDIT_CLASS_DIR_WRITE
,
dir_class
);
audit_register_class
(
AUDIT_CLASS_CHATTR
,
chattr_class
);
return
0
;
...
...
include/asm-generic/audit_read.h
0 → 100644
View file @
dc104fb3
__NR_readlink
,
__NR_quotactl
,
__NR_listxattr
,
__NR_llistxattr
,
__NR_flistxattr
,
__NR_getxattr
,
__NR_lgetxattr
,
__NR_fgetxattr
,
include/asm-generic/audit_write.h
0 → 100644
View file @
dc104fb3
#include <asm-generic/audit_dir_write.h>
__NR_acct
,
__NR_swapon
,
__NR_quotactl
,
__NR_truncate
,
#ifdef __NR_truncate64
__NR_truncate64
,
#endif
#ifdef __NR_bind
__NR_bind
,
/* bind can affect fs object only in one way... */
#endif
include/linux/audit.h
View file @
dc104fb3
...
...
@@ -132,6 +132,10 @@
#define AUDIT_CLASS_DIR_WRITE_32 1
#define AUDIT_CLASS_CHATTR 2
#define AUDIT_CLASS_CHATTR_32 3
#define AUDIT_CLASS_READ 4
#define AUDIT_CLASS_READ_32 5
#define AUDIT_CLASS_WRITE 6
#define AUDIT_CLASS_WRITE_32 7
/* This bitmask is used to validate user input. It represents all bits that
* are currently used in an audit field constant understood by the kernel.
...
...
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