f5a5133 useradd: generate /var/spool/mail/$USER with the proper SELinux user identity

Authored and Committed by ipedrosa 4 years ago
    useradd: generate /var/spool/mail/$USER with the proper SELinux user identity
    
    Explanation: use set_selinux_file_context() and reset_selinux_file_context() for create_mail() just as is done for create_home()
    
    Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1690527
    
        
file modified
+8 -1