Lines Matching defs:directory
53 char *directory;
119 * add_exclude() - Add a directory/fs to be excluded from labeling. If it
122 * check_excluded() - Check if directory/fs is to be excluded when relabeling.
137 * mounted on a directory below this.
139 static void remove_exclude(const char *directory)
144 if (strcmp(directory, exclude_lst[i].directory) == 0 &&
146 free(exclude_lst[i].directory);
155 static int add_exclude(const char *directory, bool who)
163 if (strcmp(directory, exclude_lst[i].directory) == 0)
167 if (directory == NULL || directory[0] != '/') {
170 directory);
176 selinux_log(SELINUX_ERROR, "Too many directory excludes: %d.\n", exclude_count);
188 len = strlen(directory);
189 while (len > 1 && directory[len - 1] == '/')
194 current->directory = strndup(directory, len);
195 if (!current->directory)
213 if (strncmp(file, exclude_lst[i].directory,
238 * attributes and adds them to the exclude directory table. File systems
308 static int add_xattr_entry(const char *directory, bool delete_nonmatch,
320 if (!directory) {
325 match = selabel_get_digests_all_partial_matches(fc_sehandle, directory,
349 rc = removexattr(directory, RESTORECON_PARTIAL_MATCH_DIGEST);
353 RESTORECON_PARTIAL_MATCH_DIGEST, directory);
368 new_entry->directory = strdup(directory);
369 if (!new_entry->directory) {
377 free(new_entry->directory);
641 // Allow the hnp process to refresh the labels of files in the HNP_ROOT_PATH directory
856 /* Save digest of all matched contexts for the current directory. */
1001 "Skipping restorecon on directory(%s)\n",
1030 "Skipping restorecon on directory(%s), cause ignroe_cfg\n",
1036 "Skipping restorecon on directory(%s) sub directory, cause ignroe_cfg\n",
1199 /* missing parent directory */
1254 /* Skip digest if not a directory */
1299 * device numbers, but fts will still give back the actual directory.
1300 * By saving the device number of the directory that was passed to
1655 free(current->directory);