Searched refs:root (Results 1 - 25 of 61) sorted by relevance

123

/systemd/src/core/
H A Dmachine-id-setup.h22 int machine_id_commit(const char *root);
23 int machine_id_setup(const char *root, sd_id128_t machine_id);
H A Dmachine-id-setup.c114 static int generate_machine_id(char id[34], const char *root) { argument
123 if (isempty(root))
126 dbus_machine_id = strjoina(root, "/var/lib/dbus/machine-id");
140 if (isempty(root)) {
199 int machine_id_setup(const char *root, sd_id128_t machine_id) { argument
206 if (isempty(root)) {
212 x = strjoina(root, "/etc/machine-id");
215 x = strjoina(root, "/run/machine-id");
222 * will be owned by root it doesn't matter much, but maybe
261 r = generate_machine_id(id, root);
298 machine_id_commit(const char *root) argument
[all...]
/systemd/tmpfiles.d/
H A Dx11.conf11 d /tmp/.X11-unix 1777 root root 10d
12 d /tmp/.ICE-unix 1777 root root 10d
13 d /tmp/.XIM-unix 1777 root root 10d
14 d /tmp/.font-unix 1777 root root 10d
15 d /tmp/.Test-unix 1777 root root 1
[all...]
H A Dlegacy.conf13 d /run/lock 0755 root root -
19 d /run/lock/subsys 0755 root root -
H A Dtmp.conf11 q /tmp 1777 root root 10d
12 q /var/tmp 1777 root root 30d
H A Dvar.conf15 f /var/log/wtmp 0664 root utmp -
16 f /var/log/btmp 0600 root utmp -
/systemd/src/basic/
H A Dconf-files.h23 int conf_files_list(char ***ret, const char *suffix, const char *root, const char *dir, ...);
24 int conf_files_list_strv(char ***ret, const char *suffix, const char *root, const char* const* dirs);
25 int conf_files_list_nulstr(char ***ret, const char *suffix, const char *root, const char *dirs);
H A Dconf-files.c39 static int files_add(Hashmap *h, const char *root, const char *path, const char *suffix) { argument
48 dirpath = prefix_roota(root, path);
91 static int conf_files_list_strv_internal(char ***strv, const char *suffix, const char *root, char **dirs) { argument
100 if (!path_strv_resolve_uniq(dirs, root))
108 r = files_add(fh, root, *p, suffix);
125 int conf_files_list_strv(char ***strv, const char *suffix, const char *root, const char* const* dirs) { argument
135 return conf_files_list_strv_internal(strv, suffix, root, copy);
138 int conf_files_list(char ***strv, const char *suffix, const char *root, const char *dir, ...) { argument
152 return conf_files_list_strv_internal(strv, suffix, root, dirs);
155 int conf_files_list_nulstr(char ***strv, const char *suffix, const char *root, cons argument
[all...]
H A Dstrbuf.c57 str->root = new0(struct strbuf_node, 1);
58 if (!str->root)
64 free(str->root);
82 if (str->root)
83 strbuf_node_cleanup(str->root);
84 str->root = NULL;
91 if (str->root)
92 strbuf_node_cleanup(str->root);
137 if (!str->root)
146 node = str->root;
[all...]
/systemd/src/test/
H A Dtest-install-root.c27 static void test_basic_mask_and_enable(const char *root) { argument
33 assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "a.service", NULL) == -ENOENT);
34 assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "b.service", NULL) == -ENOENT);
35 assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "c.service", NULL) == -ENOENT);
36 assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "d.service", NULL) == -ENOENT);
38 p = strjoina(root, "/usr/lib/systemd/system/a.service");
43 assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "a.service", NULL) >= 0);
44 assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "a.service", &state) >= 0 && state == UNIT_FILE_DISABLED);
46 p = strjoina(root, "/usr/lib/systemd/system/b.service");
49 assert_se(unit_file_get_state(UNIT_FILE_SYSTEM, root, "
166 test_linked_units(const char *root) argument
307 test_default(const char *root) argument
341 test_add_dependency(const char *root) argument
368 test_template_enable(const char *root) argument
474 test_indirect(const char *root) argument
523 test_preset_and_list(const char *root) argument
632 char root[] = "/tmp/rootXXXXXX"; local
[all...]
/systemd/src/shared/
H A Dbase-filesystem.h24 int base_filesystem_create(const char *root, uid_t uid, gid_t gid);
H A Dbase-filesystem.c49 { "root", 0755, NULL, NULL, true },
60 int base_filesystem_create(const char *root, uid_t uid, gid_t gid) { argument
65 fd = open(root, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW);
67 return log_error_errno(errno, "Failed to open root file system: %m");
102 return log_error_errno(errno, "Failed to create symlink at %s/%s: %m", root, table[i].dir);
106 return log_error_errno(errno, "Failed to chown symlink at %s/%s: %m", root, table[i].dir);
116 "Failed to create directory at %s/%s: %m", root, table[i].dir);
124 return log_error_errno(errno, "Failed to chown directory at %s/%s: %m", root, table[i].dir);
/systemd/src/libsystemd/sd-bus/
H A Dtest-bus-match.c55 static int match_add(sd_bus_slot *slots, struct bus_match_node *root, const char *match, int value) { argument
71 r = bus_match_add(root, components, n_components, &s->match_callback);
87 struct bus_match_node root = { local
101 assert_se(match_add(slots, &root, "arg2='wal\\'do',sender='foo',type='signal',interface='bar.x',", 1) >= 0);
102 assert_se(match_add(slots, &root, "arg2='wal\\'do2',sender='foo',type='signal',interface='bar.x',", 2) >= 0);
103 assert_se(match_add(slots, &root, "arg3='test',sender='foo',type='signal',interface='bar.x',", 3) >= 0);
104 assert_se(match_add(slots, &root, "arg3='test',sender='foo',type='method_call',interface='bar.x',", 4) >= 0);
105 assert_se(match_add(slots, &root, "", 5) >= 0);
106 assert_se(match_add(slots, &root, "interface='quux.x'", 6) >= 0);
107 assert_se(match_add(slots, &root, "interfac
[all...]
H A Dbus-match.h82 int bus_match_run(sd_bus *bus, struct bus_match_node *root, sd_bus_message *m);
84 int bus_match_add(struct bus_match_node *root, struct bus_match_component *components, unsigned n_components, struct match_callback *callback);
85 int bus_match_remove(struct bus_match_node *root, struct match_callback *callback);
87 int bus_match_find(struct bus_match_node *root, struct bus_match_component *components, unsigned n_components, sd_bus_message_handler_t callback, void *userdata, struct match_callback **ret);
/systemd/test/TEST-03-JOBS/
H A Dtest.sh10 mkdir -p $TESTDIR/root
11 mount ${LOOPDEV}p1 $TESTDIR/root
12 [[ -e $TESTDIR/root/testok ]] && ret=0
13 [[ -f $TESTDIR/root/failed ]] && cp -a $TESTDIR/root/failed $TESTDIR
14 cp -a $TESTDIR/root/var/log/journal $TESTDIR
15 umount $TESTDIR/root
39 mkdir -p $TESTDIR/root
40 mount ${LOOPDEV}p1 $TESTDIR/root
42 # Create what will eventually be our root filesyste
[all...]
H A Dtest-jobs.sh8 systemctl list-jobs > /root/list-jobs.txt
9 while ! grep 'sleep\.service.*running' /root/list-jobs.txt; do
10 systemctl list-jobs > /root/list-jobs.txt
13 grep 'hello\.service.*waiting' /root/list-jobs.txt || exit 1
24 systemctl list-jobs > /root/list-jobs.txt
25 grep 'sleep\.service.*running' /root/list-jobs.txt || exit 1
26 grep 'hello\.service' /root/list-jobs.txt && exit 1
/systemd/test/TEST-04-JOURNAL/
H A Dtest.sh10 mkdir -p $TESTDIR/root
11 mount ${LOOPDEV}p1 $TESTDIR/root
12 [[ -e $TESTDIR/root/testok ]] && ret=0
13 [[ -f $TESTDIR/root/failed ]] && cp -a $TESTDIR/root/failed $TESTDIR
14 cp -a $TESTDIR/root/var/log/journal $TESTDIR
15 umount $TESTDIR/root
39 mkdir -p $TESTDIR/root
40 mount ${LOOPDEV}p1 $TESTDIR/root
42 # Create what will eventually be our root filesyste
[all...]
/systemd/test/TEST-05-RLIMITS/
H A Dtest.sh10 mkdir -p $TESTDIR/root
11 mount ${LOOPDEV}p1 $TESTDIR/root
12 [[ -e $TESTDIR/root/testok ]] && ret=0
13 [[ -f $TESTDIR/root/failed ]] && cp -a $TESTDIR/root/failed $TESTDIR
14 cp -a $TESTDIR/root/var/log/journal $TESTDIR
15 umount $TESTDIR/root
39 mkdir -p $TESTDIR/root
40 mount ${LOOPDEV}p1 $TESTDIR/root
42 # Create what will eventually be our root filesyste
[all...]
/systemd/test/TEST-02-CRYPTSETUP/
H A Dtest.sh10 mkdir -p $TESTDIR/root
11 mount ${LOOPDEV}p1 $TESTDIR/root
12 [[ -e $TESTDIR/root/testok ]] && ret=0
13 [[ -f $TESTDIR/root/failed ]] && cp -a $TESTDIR/root/failed $TESTDIR
15 mount /dev/mapper/varcrypt $TESTDIR/root/var
16 cp -a $TESTDIR/root/var/log/journal $TESTDIR
17 umount $TESTDIR/root/var
18 umount $TESTDIR/root
42 mkdir -p $TESTDIR/root
[all...]
/systemd/src/systemctl/
H A Dsystemd-sysv-install.SKELETON5 # can optionally take a --root argument for enabling a SysV init script
10 echo "Usage: $0 [--root=path] enable|disable|is-enabled <sysv script name>" >&2
15 eval set -- "$(getopt -o r: --long root: -- "$@")"
18 -r|--root)
/systemd/test/TEST-01-BASIC/
H A Dtest.sh10 mkdir -p $TESTDIR/root
11 mount ${LOOPDEV}p1 $TESTDIR/root
12 [[ -e $TESTDIR/root/testok ]] && ret=0
13 [[ -f $TESTDIR/root/failed ]] && cp -a $TESTDIR/root/failed $TESTDIR
14 cp -a $TESTDIR/root/var/log/journal $TESTDIR
15 umount $TESTDIR/root
39 mkdir -p $TESTDIR/root
40 mount ${LOOPDEV}p1 $TESTDIR/root
42 # Create what will eventually be our root filesyste
[all...]
/systemd/test/TEST-07-ISSUE-1981/
H A Dtest.sh11 timeout --foreground 30s systemd-nspawn --kill-signal=SIGKILL --boot --directory=$TESTDIR/nspawn-root $ROOTLIBDIR/systemd $KERNEL_APPEND
21 mkdir -p $TESTDIR/root
22 mount ${LOOPDEV}p1 $TESTDIR/root
24 # Create what will eventually be our root filesystem onto an overlay
48 ddebug "umount $TESTDIR/root"
49 umount $TESTDIR/root
53 umount $TESTDIR/root 2>/dev/null
/systemd/src/import/
H A Dpull-common.h27 int pull_make_local_copy(const char *final, const char *root, const char *local, bool force_local);
29 int pull_find_old_etags(const char *url, const char *root, int dt, const char *prefix, const char *suffix, char ***etags);
/systemd/src/cgls/
H A Dcgls.c133 return log_error_errno(r, "Failed to get root control group path: No cgroup filesystem mounted on /sys/fs/cgroup");
135 return log_error_errno(r, "Failed to get root control group path: %m");
197 _cleanup_free_ char *root = NULL; local
200 r = get_cgroup_root(&root);
225 j = strjoin(root, "/", p, NULL);
234 path = root;
267 _cleanup_free_ char *root = NULL; local
269 r = get_cgroup_root(&root);
273 show_cg_info(SYSTEMD_CGROUP_CONTROLLER, root);
276 r = show_cgroup(SYSTEMD_CGROUP_CONTROLLER, root, NUL
[all...]
/systemd/src/journal/
H A Dcatalog.h30 int catalog_update(const char* database, const char* root, const char* const* dirs);

Completed in 78 milliseconds

123