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
3dbbbe0e
Commit
3dbbbe0e
authored
Jul 11, 2015
by
James Morris
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'upstream' of
git://git.infradead.org/users/pcmoore/selinux
into for-linus2
parents
1604f871
892e8cac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
security/selinux/hooks.c
security/selinux/hooks.c
+2
-1
security/selinux/ss/ebitmap.c
security/selinux/ss/ebitmap.c
+6
-0
No files found.
security/selinux/hooks.c
View file @
3dbbbe0e
...
@@ -3283,7 +3283,8 @@ static int file_map_prot_check(struct file *file, unsigned long prot, int shared
...
@@ -3283,7 +3283,8 @@ static int file_map_prot_check(struct file *file, unsigned long prot, int shared
int
rc
=
0
;
int
rc
=
0
;
if
(
default_noexec
&&
if
(
default_noexec
&&
(
prot
&
PROT_EXEC
)
&&
(
!
file
||
(
!
shared
&&
(
prot
&
PROT_WRITE
))))
{
(
prot
&
PROT_EXEC
)
&&
(
!
file
||
IS_PRIVATE
(
file_inode
(
file
))
||
(
!
shared
&&
(
prot
&
PROT_WRITE
))))
{
/*
/*
* We are making executable an anonymous mapping or a
* We are making executable an anonymous mapping or a
* private file mapping that will also be writable.
* private file mapping that will also be writable.
...
...
security/selinux/ss/ebitmap.c
View file @
3dbbbe0e
...
@@ -153,6 +153,12 @@ int ebitmap_netlbl_import(struct ebitmap *ebmap,
...
@@ -153,6 +153,12 @@ int ebitmap_netlbl_import(struct ebitmap *ebmap,
if
(
offset
==
(
u32
)
-
1
)
if
(
offset
==
(
u32
)
-
1
)
return
0
;
return
0
;
/* don't waste ebitmap space if the netlabel bitmap is empty */
if
(
bitmap
==
0
)
{
offset
+=
EBITMAP_UNIT_SIZE
;
continue
;
}
if
(
e_iter
==
NULL
||
if
(
e_iter
==
NULL
||
offset
>=
e_iter
->
startbit
+
EBITMAP_SIZE
)
{
offset
>=
e_iter
->
startbit
+
EBITMAP_SIZE
)
{
e_prev
=
e_iter
;
e_prev
=
e_iter
;
...
...
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