diff options
author | Dmitry Shmidt <dimitrysh@google.com> | 2017-02-15 17:46:10 -0800 |
---|---|---|
committer | Dmitry Shmidt <dimitrysh@google.com> | 2017-02-15 17:46:10 -0800 |
commit | 54640cfe47251cd8acd7145ff86bcaf4db0e9616 (patch) | |
tree | 8bfe98c0f56a9447c2514d89eaf742e88acdd0a2 /security/selinux/hooks.c | |
parent | 5edfa05a10a7a545f085b5bdf1a79567b4470d4e (diff) | |
parent | 702c0ce9a7c7ad1b22883aa82d8c29eaa6e65aab (diff) |
Merge tag 'v4.4.49' into android-4.4.y
This is the 4.4.49 stable release
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 94a0bfc748d1..2bc8b555bca9 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -5673,7 +5673,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--; |