Lines Matching defs:file
1 /* lsm.h - header file for lib directory
70 // Label a file, following symlinks
78 // Label a file, don't follow symlinks
86 // Label a file by filehandle
87 static inline int lsm_fset_context(int file, char *context)
90 return smack_set_label_for_file(file, XATTR_NAME_SMACK, context);
91 else return fsetfilecon(file, context);
110 static inline int lsm_fget_context(int file, char **context)
113 return smack_new_label_from_file(file, XATTR_NAME_SMACK, context);
114 return fgetfilecon(file, context);