diff options
author | Alex Shi <alex.shi@linaro.org> | 2017-02-15 12:01:20 +0800 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2017-02-15 12:01:20 +0800 |
commit | 57f53fd801a06aa1bfc6492737d70423ff9d3660 (patch) | |
tree | e6b474e434e57a7c800e192000572b61869543c8 /security | |
parent | fd0d0fd17f47e0015e5be2a1e58434144a5f99e0 (diff) | |
parent | 702c0ce9a7c7ad1b22883aa82d8c29eaa6e65aab (diff) |
Merge tag 'v4.4.49' into linux-linaro-lsk-v4.4
This is the 4.4.49 stable release
Diffstat (limited to 'security')
-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 d0cfaa9f19d0..4b56c3b6c25f 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c @@ -5640,7 +5640,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--; |