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
0e38c358
Commit
0e38c358
authored
Aug 14, 2015
by
James Morris
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'smack-for-4.3' of
https://github.com/cschaufler/smack-next
into next
parents
e4fc02f2
3d04c924
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
security/smack/smack_lsm.c
security/smack/smack_lsm.c
+18
-14
No files found.
security/smack/smack_lsm.c
View file @
0e38c358
...
...
@@ -57,15 +57,7 @@ LIST_HEAD(smk_ipv6_port_list);
static
struct
kmem_cache
*
smack_inode_cache
;
int
smack_enabled
;
#ifdef CONFIG_SECURITY_SMACK_BRINGUP
static
char
*
smk_bu_mess
[]
=
{
"Bringup Error"
,
/* Unused */
"Bringup"
,
/* SMACK_BRINGUP_ALLOW */
"Unconfined Subject"
,
/* SMACK_UNCONFINED_SUBJECT */
"Unconfined Object"
,
/* SMACK_UNCONFINED_OBJECT */
};
static
const
match_table_t
tokens
=
{
static
const
match_table_t
smk_mount_tokens
=
{
{
Opt_fsdefault
,
SMK_FSDEFAULT
"%s"
},
{
Opt_fsfloor
,
SMK_FSFLOOR
"%s"
},
{
Opt_fshat
,
SMK_FSHAT
"%s"
},
...
...
@@ -74,6 +66,14 @@ static const match_table_t tokens = {
{
Opt_error
,
NULL
},
};
#ifdef CONFIG_SECURITY_SMACK_BRINGUP
static
char
*
smk_bu_mess
[]
=
{
"Bringup Error"
,
/* Unused */
"Bringup"
,
/* SMACK_BRINGUP_ALLOW */
"Unconfined Subject"
,
/* SMACK_UNCONFINED_SUBJECT */
"Unconfined Object"
,
/* SMACK_UNCONFINED_OBJECT */
};
static
void
smk_bu_mode
(
int
mode
,
char
*
s
)
{
int
i
=
0
;
...
...
@@ -599,9 +599,14 @@ static int smack_parse_opts_str(char *options,
struct
security_mnt_opts
*
opts
)
{
char
*
p
;
char
*
fsdefault
=
NULL
,
*
fsfloor
=
NULL
;
char
*
fshat
=
NULL
,
*
fsroot
=
NULL
,
*
fstransmute
=
NULL
;
int
rc
=
-
ENOMEM
,
num_mnt_opts
=
0
;
char
*
fsdefault
=
NULL
;
char
*
fsfloor
=
NULL
;
char
*
fshat
=
NULL
;
char
*
fsroot
=
NULL
;
char
*
fstransmute
=
NULL
;
int
rc
=
-
ENOMEM
;
int
num_mnt_opts
=
0
;
int
token
;
opts
->
num_mnt_opts
=
0
;
...
...
@@ -609,13 +614,12 @@ static int smack_parse_opts_str(char *options,
return
0
;
while
((
p
=
strsep
(
&
options
,
","
))
!=
NULL
)
{
int
token
;
substring_t
args
[
MAX_OPT_ARGS
];
if
(
!*
p
)
continue
;
token
=
match_token
(
p
,
tokens
,
args
);
token
=
match_token
(
p
,
smk_mount_
tokens
,
args
);
switch
(
token
)
{
case
Opt_fsdefault
:
...
...
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