5b93634 UTIL: move {files,selinux}.c under util directory

9 files Authored by fidencio 6 years ago, Committed by jhrozek 6 years ago,
    UTIL: move {files,selinux}.c under util directory
    
    files.c has at least one function that will be re-used for the new
    session provider that's about to be added. Also, a few other functions
    may be added and files.c seems the right place for those.
    
    selinux.c has been moved together with files.c as the latter takes
    advantage of some functions from the former and we do not want to always
    link agains the tools code.
    
    The public functions from files.c got a "sss_" prefix and it has been
    changed whenever they're used.
    
    Last but not least, all the places that included "tools/tools_util.h"
    due to the functions on files.c had this include removed (as they were
    already including "util/util.h".
    
    Related:
    https://pagure.io/SSSD/sssd/issue/2995
    
    Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
    
    Reviewed-by: Pavel Březina <pbrezina@redhat.com>
    Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
    
        
file modified
+4 -4
file modified
+6 -7
file modified
+2 -3
file modified
+0 -17
src/util/files.c src/tools/files.c
file renamed
+11 -11
src/util/selinux.c src/tools/selinux.c
file renamed
file was renamed with no change to the file
file modified
+19 -0