projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
70ea163
)
Merge branch 'stable-4.10' of git://git.infradead.org/users/pcmoore/selinux into...
author
James Morris
<james.l.morris@oracle.com>
Wed, 8 Feb 2017 08:01:07 +0000
(19:01 +1100)
committer
James Morris
<james.l.morris@oracle.com>
Wed, 8 Feb 2017 08:01:07 +0000
(19:01 +1100)
security/selinux/hooks.c
patch
|
blob
|
history
diff --git
a/security/selinux/hooks.c
b/security/selinux/hooks.c
index
fdc24ea
..
4245730
100644
(file)
--- a/
security/selinux/hooks.c
+++ b/
security/selinux/hooks.c
@@
-5887,7
+5887,7
@@
static int selinux_setprocattr(struct task_struct *p,
return error;
/* Obtain a SID for the context, if one was specified. */
- if (size && str[
1] && str[1
] != '\n') {
+ if (size && str[
0] && str[0
] != '\n') {
if (str[size-1] == '\n') {
str[size-1] = 0;
size--;