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
9e1b30a3
Commit
9e1b30a3
authored
Jun 03, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Jun 03, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] sparse: selinux annotation
selinuxfs.c annotated
parent
019453ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
security/selinux/selinuxfs.c
security/selinux/selinuxfs.c
+13
-12
No files found.
security/selinux/selinuxfs.c
View file @
9e1b30a3
...
@@ -68,7 +68,7 @@ enum sel_inos {
...
@@ -68,7 +68,7 @@ enum sel_inos {
SEL_DISABLE
/* disable SELinux until next reboot */
SEL_DISABLE
/* disable SELinux until next reboot */
};
};
static
ssize_t
sel_read_enforce
(
struct
file
*
filp
,
char
*
buf
,
static
ssize_t
sel_read_enforce
(
struct
file
*
filp
,
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
size_t
count
,
loff_t
*
ppos
)
{
{
char
*
page
;
char
*
page
;
...
@@ -105,7 +105,7 @@ static ssize_t sel_read_enforce(struct file *filp, char *buf,
...
@@ -105,7 +105,7 @@ static ssize_t sel_read_enforce(struct file *filp, char *buf,
}
}
#ifdef CONFIG_SECURITY_SELINUX_DEVELOP
#ifdef CONFIG_SECURITY_SELINUX_DEVELOP
static
ssize_t
sel_write_enforce
(
struct
file
*
file
,
const
char
*
buf
,
static
ssize_t
sel_write_enforce
(
struct
file
*
file
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
size_t
count
,
loff_t
*
ppos
)
{
{
...
@@ -155,7 +155,7 @@ static struct file_operations sel_enforce_ops = {
...
@@ -155,7 +155,7 @@ static struct file_operations sel_enforce_ops = {
};
};
#ifdef CONFIG_SECURITY_SELINUX_DISABLE
#ifdef CONFIG_SECURITY_SELINUX_DISABLE
static
ssize_t
sel_write_disable
(
struct
file
*
file
,
const
char
*
buf
,
static
ssize_t
sel_write_disable
(
struct
file
*
file
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
size_t
count
,
loff_t
*
ppos
)
{
{
...
@@ -201,7 +201,7 @@ static struct file_operations sel_disable_ops = {
...
@@ -201,7 +201,7 @@ static struct file_operations sel_disable_ops = {
.
write
=
sel_write_disable
,
.
write
=
sel_write_disable
,
};
};
static
ssize_t
sel_read_policyvers
(
struct
file
*
filp
,
char
*
buf
,
static
ssize_t
sel_read_policyvers
(
struct
file
*
filp
,
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
size_t
count
,
loff_t
*
ppos
)
{
{
char
*
page
;
char
*
page
;
...
@@ -244,7 +244,7 @@ static struct file_operations sel_policyvers_ops = {
...
@@ -244,7 +244,7 @@ static struct file_operations sel_policyvers_ops = {
/* declaration for sel_write_load */
/* declaration for sel_write_load */
static
int
sel_make_bools
(
void
);
static
int
sel_make_bools
(
void
);
static
ssize_t
sel_read_mls
(
struct
file
*
filp
,
char
*
buf
,
static
ssize_t
sel_read_mls
(
struct
file
*
filp
,
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
size_t
count
,
loff_t
*
ppos
)
{
{
char
*
page
;
char
*
page
;
...
@@ -284,7 +284,7 @@ static struct file_operations sel_mls_ops = {
...
@@ -284,7 +284,7 @@ static struct file_operations sel_mls_ops = {
.
read
=
sel_read_mls
,
.
read
=
sel_read_mls
,
};
};
static
ssize_t
sel_write_load
(
struct
file
*
file
,
const
char
*
buf
,
static
ssize_t
sel_write_load
(
struct
file
*
file
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
size_t
count
,
loff_t
*
ppos
)
{
{
...
@@ -334,7 +334,7 @@ static struct file_operations sel_load_ops = {
...
@@ -334,7 +334,7 @@ static struct file_operations sel_load_ops = {
};
};
static
ssize_t
sel_write_context
(
struct
file
*
file
,
const
char
*
buf
,
static
ssize_t
sel_write_context
(
struct
file
*
file
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
size_t
count
,
loff_t
*
ppos
)
{
{
...
@@ -406,7 +406,7 @@ struct argresp {
...
@@ -406,7 +406,7 @@ struct argresp {
* possibly a read which collects the result - which is stored in a
* possibly a read which collects the result - which is stored in a
* file-local buffer.
* file-local buffer.
*/
*/
static
ssize_t
TA_write
(
struct
file
*
file
,
const
char
*
buf
,
size_t
size
,
loff_t
*
pos
)
static
ssize_t
TA_write
(
struct
file
*
file
,
const
char
__user
*
buf
,
size_t
size
,
loff_t
*
pos
)
{
{
ino_t
ino
=
file
->
f_dentry
->
d_inode
->
i_ino
;
ino_t
ino
=
file
->
f_dentry
->
d_inode
->
i_ino
;
struct
argresp
*
ar
;
struct
argresp
*
ar
;
...
@@ -445,7 +445,7 @@ static ssize_t TA_write(struct file *file, const char *buf, size_t size, loff_t
...
@@ -445,7 +445,7 @@ static ssize_t TA_write(struct file *file, const char *buf, size_t size, loff_t
return
rv
;
return
rv
;
}
}
static
ssize_t
TA_read
(
struct
file
*
file
,
char
*
buf
,
size_t
size
,
loff_t
*
pos
)
static
ssize_t
TA_read
(
struct
file
*
file
,
char
__user
*
buf
,
size_t
size
,
loff_t
*
pos
)
{
{
struct
argresp
*
ar
;
struct
argresp
*
ar
;
ssize_t
rv
=
0
;
ssize_t
rv
=
0
;
...
@@ -744,7 +744,7 @@ static struct inode *sel_make_inode(struct super_block *sb, int mode)
...
@@ -744,7 +744,7 @@ static struct inode *sel_make_inode(struct super_block *sb, int mode)
#define BOOL_INO_OFFSET 30
#define BOOL_INO_OFFSET 30
static
ssize_t
sel_read_bool
(
struct
file
*
filep
,
char
*
buf
,
static
ssize_t
sel_read_bool
(
struct
file
*
filep
,
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
size_t
count
,
loff_t
*
ppos
)
{
{
char
*
page
=
NULL
;
char
*
page
=
NULL
;
...
@@ -806,7 +806,7 @@ static ssize_t sel_read_bool(struct file *filep, char *buf,
...
@@ -806,7 +806,7 @@ static ssize_t sel_read_bool(struct file *filep, char *buf,
return
ret
;
return
ret
;
}
}
static
ssize_t
sel_write_bool
(
struct
file
*
filep
,
const
char
*
buf
,
static
ssize_t
sel_write_bool
(
struct
file
*
filep
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
size_t
count
,
loff_t
*
ppos
)
{
{
char
*
page
=
NULL
;
char
*
page
=
NULL
;
...
@@ -865,7 +865,8 @@ static struct file_operations sel_bool_ops = {
...
@@ -865,7 +865,8 @@ static struct file_operations sel_bool_ops = {
.
write
=
sel_write_bool
,
.
write
=
sel_write_bool
,
};
};
static
ssize_t
sel_commit_bools_write
(
struct
file
*
filep
,
const
char
*
buf
,
static
ssize_t
sel_commit_bools_write
(
struct
file
*
filep
,
const
char
__user
*
buf
,
size_t
count
,
loff_t
*
ppos
)
size_t
count
,
loff_t
*
ppos
)
{
{
char
*
page
=
NULL
;
char
*
page
=
NULL
;
...
...
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