/systemd/src/basic/ |
H A D | mkdir-label.c | 28 int mkdir_safe_label(const char *path, mode_t mode, uid_t uid, gid_t gid) { argument 29 return mkdir_safe_internal(path, mode, uid, gid, mkdir_label); 32 int mkdir_parents_label(const char *path, mode_t mode) { argument 33 return mkdir_parents_internal(NULL, path, mode, mkdir_label); 36 int mkdir_p_label(const char *path, mode_t mode) { argument 37 return mkdir_p_internal(NULL, path, mode, mkdir_label);
|
H A D | label.c | 43 int mkdir_label(const char *path, mode_t mode) { argument 52 if (mkdir(path, mode) < 0)
|
H A D | mkdir.c | 32 int mkdir_safe_internal(const char *path, mode_t mode, uid_t uid, gid_t gid, mkdir_func_t _mkdir) { argument 35 if (_mkdir(path, mode) >= 0) 36 if (chmod_and_chown(path, mode, uid, gid) < 0) 42 if ((st.st_mode & 0007) > (mode & 0007) || 43 (st.st_mode & 0070) > (mode & 0070) || 44 (st.st_mode & 0700) > (mode & 0700) || 53 int mkdir_safe(const char *path, mode_t mode, uid_t uid, gid_t gid) { argument 54 return mkdir_safe_internal(path, mode, uid, gid, mkdir); 57 int mkdir_parents_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_t _mkdir) { argument 100 r = _mkdir(t, mode); 106 mkdir_parents(const char *path, mode_t mode) argument 110 mkdir_p_internal(const char *prefix, const char *path, mode_t mode, mkdir_func_t _mkdir) argument 126 mkdir_p(const char *path, mode_t mode) argument [all...] |
H A D | selinux-util.c | 331 int mac_selinux_create_file_prepare(const char *path, mode_t mode) { argument 343 r = selabel_lookup_raw(label_hnd, &filecon, path, mode); 351 r = selabel_lookup_raw(label_hnd, &filecon, newpath, mode);
|
/systemd/src/core/ |
H A D | dbus-slice.c | 34 UnitSetPropertiesMode mode, 42 return bus_cgroup_set_property(u, &s->cgroup_context, name, message, mode, error); 30 bus_slice_set_property( Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument
|
H A D | dbus-kill.c | 41 UnitSetPropertiesMode mode, 63 if (mode != UNIT_CHECK) { 66 unit_write_drop_in_private_format(u, mode, name, "KillMode=%s\n", kill_mode_to_string(k)); 81 if (mode != UNIT_CHECK) { 84 unit_write_drop_in_private_format(u, mode, name, "KillSignal=%s\n", signal_to_string(sig)); 96 if (mode != UNIT_CHECK) { 99 unit_write_drop_in_private_format(u, mode, name, "SendSIGHUP=%s\n", yes_no(b)); 111 if (mode != UNIT_CHECK) { 114 unit_write_drop_in_private_format(u, mode, name, "SendSIGKILL=%s\n", yes_no(b)); 36 bus_kill_context_set_transient_property( Unit *u, KillContext *c, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument
|
H A D | dbus-scope.c | 75 UnitSetPropertiesMode mode, 97 if (mode != UNIT_CHECK) { 128 if (mode != UNIT_CHECK) { 145 if (mode != UNIT_CHECK) { 150 unit_write_drop_in_format(UNIT(s), mode, name, "[Scope]\nTimeoutStopSec="USEC_FMT"us\n", s->timeout_stop_usec); 167 UnitSetPropertiesMode mode, 177 r = bus_cgroup_set_property(u, &s->cgroup_context, name, message, mode, error); 184 r = bus_scope_set_transient_property(s, name, message, mode, error); 188 r = bus_kill_context_set_transient_property(u, &s->kill_context, name, message, mode, error); 71 bus_scope_set_transient_property( Scope *s, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument 163 bus_scope_set_property( Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument
|
H A D | dbus-swap.c | 96 UnitSetPropertiesMode mode, 105 return bus_cgroup_set_property(u, &s->cgroup_context, name, message, mode, error); 92 bus_swap_set_property( Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument
|
H A D | dbus-mount.c | 130 UnitSetPropertiesMode mode, 155 if (mode != UNIT_CHECK) { 171 UnitSetPropertiesMode mode, 181 r = bus_cgroup_set_property(u, &m->cgroup_context, name, message, mode, error); 188 r = bus_mount_set_transient_property(m, name, message, mode, error); 192 r = bus_exec_context_set_transient_property(u, &m->exec_context, name, message, mode, error); 196 r = bus_kill_context_set_transient_property(u, &m->kill_context, name, message, mode, error); 126 bus_mount_set_transient_property( Mount *m, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument 167 bus_mount_set_property( Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument
|
H A D | dbus-service.c | 87 UnitSetPropertiesMode mode, 103 if (mode != UNIT_CHECK) { 105 unit_write_drop_in_private_format(UNIT(s), mode, name, "RemainAfterExit=%s\n", yes_no(b)); local 122 if (mode != UNIT_CHECK) { 124 unit_write_drop_in_private_format(UNIT(s), mode, name, "Type=%s\n", service_type_to_string(s->type)); local 135 if (mode != UNIT_CHECK) { 137 unit_write_drop_in_private_format(UNIT(s), mode, name, "RuntimeMaxSec=" USEC_FMT "us\n", u); local 152 if (mode != UNIT_CHECK) { 206 if (mode != UNIT_CHECK) { 238 if (mode ! 83 bus_service_set_transient_property( Service *s, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument 278 bus_service_set_property( Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument [all...] |
H A D | dbus-socket.c | 163 UnitSetPropertiesMode mode, 172 return bus_cgroup_set_property(u, &s->cgroup_context, name, message, mode, error); 159 bus_socket_set_property( Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument
|
H A D | dbus-cgroup.c | 164 UnitSetPropertiesMode mode, 181 if (mode != UNIT_CHECK) { 183 unit_write_drop_in_private(u, mode, name, b ? "Delegate=yes" : "Delegate=no"); 197 UnitSetPropertiesMode mode, 214 if (mode != UNIT_CHECK) { 217 unit_write_drop_in_private(u, mode, name, b ? "CPUAccounting=yes" : "CPUAccounting=no"); 232 if (mode != UNIT_CHECK) { 237 unit_write_drop_in_private(u, mode, name, "CPUShares="); 239 unit_write_drop_in_private_format(u, mode, name, "CPUShares=%" PRIu64, shares); 254 if (mode ! 159 bus_cgroup_set_transient_property( Unit *u, CGroupContext *c, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument 192 bus_cgroup_set_property( Unit *u, CGroupContext *c, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument [all...] |
H A D | dbus-timer.c | 192 UnitSetPropertiesMode mode, 220 if (mode != UNIT_CHECK) { 223 unit_write_drop_in_private_format(UNIT(t), mode, name, "%s=%s\n", name, format_timespan(time, sizeof(time), u, USEC_PER_MSEC)); local 247 if (mode != UNIT_CHECK) { 252 unit_write_drop_in_private_format(UNIT(t), mode, name, "%s=%s\n", name, str); 278 if (mode != UNIT_CHECK) { 280 unit_write_drop_in_private_format(UNIT(t), mode, name, "AccuracySec=" USEC_FMT "us\n", u); local 292 if (mode != UNIT_CHECK) { 294 unit_write_drop_in_private_format(UNIT(t), mode, name, "RandomizedDelaySec=" USEC_FMT "us\n", u); local 306 if (mode ! 188 bus_timer_set_transient_property( Timer *t, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument 308 unit_write_drop_in_private_format(UNIT(t), mode, name, "%s=%s\\n", name, yes_no(b)); local 322 unit_write_drop_in_private_format(UNIT(t), mode, name, "%s=%s\\n", name, yes_no(b)); local 331 bus_timer_set_property( Unit *u, const char *name, sd_bus_message *message, UnitSetPropertiesMode mode, sd_bus_error *error) argument [all...] |
H A D | mount-setup.c | 59 MountMode mode; member in struct:MountPoint 77 { "devtmpfs", "/dev", "devtmpfs", "mode=755", MS_NOSUID|MS_STRICTATIME, 84 { "tmpfs", "/dev/shm", "tmpfs", "mode=1777,smackfsroot=*", MS_NOSUID|MS_NODEV|MS_STRICTATIME, 87 { "tmpfs", "/dev/shm", "tmpfs", "mode=1777", MS_NOSUID|MS_NODEV|MS_STRICTATIME, 89 { "devpts", "/dev/pts", "devpts", "mode=620,gid=" STRINGIFY(TTY_GID), MS_NOSUID|MS_NOEXEC, 92 { "tmpfs", "/run", "tmpfs", "mode=755,smackfsroot=*", MS_NOSUID|MS_NODEV|MS_STRICTATIME, 95 { "tmpfs", "/run", "tmpfs", "mode=755", MS_NOSUID|MS_NODEV|MS_STRICTATIME, 99 { "tmpfs", "/sys/fs/cgroup", "tmpfs", "mode=755", MS_NOSUID|MS_NOEXEC|MS_NODEV|MS_STRICTATIME, 163 log_full_errno((p->mode & MNT_FATAL) ? LOG_ERR : LOG_DEBUG, r, "Failed to determine whether %s is a mount point: %m", p->where); 164 return (p->mode [all...] |
H A D | transaction.c | 496 static int transaction_is_destructive(Transaction *tr, JobMode mode, sd_bus_error *e) { argument 511 if (j->unit->job && (mode == JOB_FAIL || j->unit->job->irreversible) && 573 static int transaction_apply(Transaction *tr, Manager *m, JobMode mode) { argument 580 if (mode == JOB_ISOLATE || mode == JOB_FLUSH) { 639 int transaction_activate(Transaction *tr, Manager *m, JobMode mode, sd_bus_error *e) { argument 662 if (mode == JOB_FAIL) 671 if (mode != JOB_ISOLATE) 704 if (mode != JOB_ISOLATE) 715 r = transaction_is_destructive(tr, mode, [all...] |
/systemd/src/network/ |
H A D | networkd-netdev-ipvlan.h | 37 IPVlanMode mode; member in struct:IPVlan
|
H A D | networkd-netdev-macvlan.h | 38 MacVlanMode mode; member in struct:MacVlan
|
/systemd/src/login/ |
H A D | test-inhibit.c | 32 const char *who = "Test Tool", *reason = "Just because!", *mode = "block"; local 43 "ssss", what, who, reason, mode); 56 const char *what, *who, *why, *mode; local 74 while ((r = sd_bus_message_read(reply, "(ssssuu)", &what, &who, &why, &mode, &uid, &pid)) > 0) { 75 printf("what=<%s> who=<%s> why=<%s> mode=<%s> uid=<%"PRIu32"> pid=<%"PRIu32">\n", 76 what, who, why, mode, uid, pid);
|
H A D | inhibit.c | 79 const char *what, *who, *why, *mode; local 100 while ((r = sd_bus_message_read(reply, "(ssssuu)", &what, &who, &why, &mode, &uid, &pid)) > 0) { 103 if (arg_mode && !streq(mode, arg_mode)) 116 mode); 142 " --mode=MODE One of block or delay\n" 164 { "mode", required_argument, NULL, ARG_MODE },
|
H A D | logind-inhibit.h | 59 InhibitMode mode; member in struct:Inhibitor
|
/systemd/src/shared/ |
H A D | base-filesystem.c | 40 mode_t mode; member in struct:BaseFilesystem 113 r = mkdirat(fd, table[i].dir, table[i].mode);
|
/systemd/src/test/ |
H A D | test-udev.c | 125 mode_t mode = 0600; local 128 mode |= S_IFBLK; 130 mode |= S_IFCHR; 134 mknod(udev_device_get_devnode(dev), mode, udev_device_get_devnum(dev)); local
|
/systemd/src/sleep/ |
H A D | sleep.c | 40 char **mode; local 42 STRV_FOREACH(mode, modes) { 45 k = write_string_file("/sys/power/disk", *mode, 0); 50 *mode); 56 log_error_errno(r, "Failed to write mode to /sys/power/disk: %m"); 104 /* Configure the hibernation mode */
|
/systemd/src/initctl/ |
H A D | initctl.c | 103 const char *mode; local 116 mode = "isolate"; 118 mode = "replace-irreversibly"; 120 log_debug("Running request %s/start/%s", target, mode); 130 "ss", target, mode);
|
/systemd/src/fsck/ |
H A D | fsck.c | 67 static void start_target(const char *target, const char *mode) { argument 90 "sss", "basic.target", target, mode); 102 if (streq(key, "fsck.mode") && value) { 111 log_warning("Invalid fsck.mode= parameter '%s'. Ignoring.", value); 130 log_warning("Please pass 'fsck.mode=skip' rather than 'fastboot' on the kernel command line."); 134 log_warning("Please pass 'fsck.mode=force' rather than 'forcefsck' on the kernel command line."); 146 log_error("Please pass 'fsck.mode=skip' on the kernel command line rather than creating /fastboot on the root file system."); 151 log_error("Please pass 'fsck.mode=force' on the kernel command line rather than creating /forcefsck on the root file system.");
|