Skip to content

Commit

Permalink
Merge branch 'stable-4.10' of git://git.infradead.org/users/pcmoore/s…
Browse files Browse the repository at this point in the history
…elinux into next
  • Loading branch information
James Morris committed Feb 8, 2017
2 parents 70ea163 + a050a57 commit e2241be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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--;
Expand Down

0 comments on commit e2241be

Please sign in to comment.