commit | e2241be62deabe09d7c681326fcb0bc707082147 | [log] [tgz] |
---|---|---|
author | James Morris <james.l.morris@oracle.com> | Wed Feb 08 19:01:07 2017 +1100 |
committer | James Morris <james.l.morris@oracle.com> | Wed Feb 08 19:01:07 2017 +1100 |
tree | 6d9267fb129e73e1695cf95eb22ba7d0dca3e07d | |
parent | 70ea163699b68963e222a905e184f6436e8a290d [diff] | |
parent | a050a570db0190164e7250013214e29a5a9803ee [diff] |
Merge branch 'stable-4.10' of git://git.infradead.org/users/pcmoore/selinux into next
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index fdc24ea..4245730 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c
@@ -5887,7 +5887,7 @@ 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--;