#3583 Stop calling umask(0) in selinux_child now that libsemanage has been fixed
Opened 2 years ago by jhrozek. Modified 2 years ago

As a workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1186422, we were calling:

155     old_mask = umask(0);
156     if (strcmp(seuser_name, "") == 0) {
157         /* An empty SELinux user should cause SSSD to use the system
158          * default. We need to remove the SELinux user from the DB
159          * in that case
160          */
161         ret = del_seuser(login_name);
162     } else {
163         ret = set_seuser(login_name, seuser_name, mls);
164     }
165     umask(old_mask);

But since that bug was fixed, we can drop this workaround eventually.


Metadata Update from @jhrozek:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1512012

2 years ago

Login to comment on this ticket.

Metadata