9a592ee util: Change file check fns to use a mode mask

8 files Authored by simo 6 years ago, Committed by jhrozek 6 years ago,
    util: Change file check fns to use a mode mask
    
    Instead of using a custom way to chck file type, use the system
    provided macros and a mode mask to decide when we want to check.
    
    Additionally a mask also allows us to selectively check permissions.
    
    Related:
    https://bugzilla.redhat.com/1089098
    Resolves:
    https://fedorahosted.org/sssd/ticket/2321
    
    Signed-off-by: Simo Sorce <simo@redhat.com>
    Reviewed-by: Pavel Reichl <preichl@redhat.com>
    
        
file modified
+2 -1
file modified
+2 -1
file modified
+4 -3
file modified
+1 -1
file modified
+32 -53
file modified
+1 -1
file modified
+7 -19