Lines Matching refs:abspath
472 static int selinux_create_file_prepare_abspath(const char *abspath, mode_t mode) { in selinux_create_file_prepare_abspath() argument
476 assert(abspath); in selinux_create_file_prepare_abspath()
477 assert(path_is_absolute(abspath)); in selinux_create_file_prepare_abspath()
484 r = selabel_lookup_raw(label_hnd, &filecon, abspath, mode); in selinux_create_file_prepare_abspath()
490 …urn log_enforcing_errno(errno, "Failed to determine SELinux security context for %s: %m", abspath); in selinux_create_file_prepare_abspath()
494 …g_enforcing_errno(errno, "Failed to set SELinux security context %s for %s: %m", filecon, abspath); in selinux_create_file_prepare_abspath()
506 _cleanup_free_ char *abspath = NULL; in mac_selinux_create_file_prepare_at() local
517 r = safe_getcwd(&abspath); in mac_selinux_create_file_prepare_at()
519 r = fd_get_path(dir_fd, &abspath); in mac_selinux_create_file_prepare_at()
523 if (!isempty(path) && !path_extend(&abspath, path)) in mac_selinux_create_file_prepare_at()
526 path = abspath; in mac_selinux_create_file_prepare_at()