diff options
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 c7c6619431d5..d98550abe16d 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
| @@ -5887,7 +5887,7 @@ static int selinux_setprocattr(struct task_struct *p, | |||
| 5887 | return error; | 5887 | return error; |
| 5888 | 5888 | ||
| 5889 | /* Obtain a SID for the context, if one was specified. */ | 5889 | /* Obtain a SID for the context, if one was specified. */ |
| 5890 | if (size && str[1] && str[1] != '\n') { | 5890 | if (size && str[0] && str[0] != '\n') { |
| 5891 | if (str[size-1] == '\n') { | 5891 | if (str[size-1] == '\n') { |
| 5892 | str[size-1] = 0; | 5892 | str[size-1] = 0; |
| 5893 | size--; | 5893 | size--; |
