Lines Matching refs:fname
66 const char *fname, in change_filedir_context() argument
76 status = lgetfilecon(fname, &file_context); in change_filedir_context()
78 status = getfilecon(fname, &file_context); in change_filedir_context()
82 bb_error_msg("can't obtain security context: %s", fname); in change_filedir_context()
87 bb_error_msg("can't apply partial context to unlabeled file %s", fname); in change_filedir_context()
116 fail = lsetfilecon(fname, context_string); in change_filedir_context()
118 fail = setfilecon(fname, context_string); in change_filedir_context()
124 fname, context_string); in change_filedir_context()
130 fname, context_string); in change_filedir_context()
134 printf("context of %s retained as %s\n", fname, context_string); in change_filedir_context()
165 char *fname; in chcon_main() local
198 for (i = 0; (fname = argv[i]) != NULL; i++) { in chcon_main()
199 int fname_len = strlen(fname); in chcon_main()
200 while (fname_len > 1 && fname[fname_len - 1] == '/') in chcon_main()
202 fname[fname_len] = '\0'; in chcon_main()
204 if (recursive_action(fname, in chcon_main()