commit | dd563b35e1f6918e5c96de29ea255b04ad34e891 | [log] [tgz] |
---|---|---|
author | Dan Walsh <dwalsh@redhat.com> | Mon Oct 24 13:47:36 2011 -0400 |
committer | Eric Paris <eparis@redhat.com> | Wed Nov 02 15:37:10 2011 -0400 |
tree | 95d31c579e298081d35b1fe54239dcd588454ff6 | |
parent | 3b5e45f004e508cca8958f6e3a46961753af291e [diff] |
libselinux: seusers: fix to handle large sets of groups If a user was in too many groups the check_group function might not pass a large enough buffer to getgrnam_r to handle things. This could return ERANGE which we then aborted. Instead we should make the buffer larger and try again. Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>