Compare commits
No commits in common. "7b679a188ee2f643e47938e8f287347399f2e083" and "3b4ea094e22b32a6da4775d64c6021cd76069997" have entirely different histories.
7b679a188e
...
3b4ea094e2
|
@ -3,24 +3,10 @@
|
||||||
# result MUST NOT be committed indiscriminately, but each automated
|
# result MUST NOT be committed indiscriminately, but each automated
|
||||||
# change should be reviewed and only the appropriate ones commited.
|
# change should be reviewed and only the appropriate ones commited.
|
||||||
#
|
#
|
||||||
# The easiest way to apply the formatting to your changes ONLY,
|
# To apply the coding style you can run the following command (assuming you
|
||||||
# is to use the git-clang-format script (usually installed with clang-format).
|
# installed clang-format on your system):
|
||||||
#
|
#
|
||||||
# - Fixup formatting before committing
|
|
||||||
# 1. Edit and stage your files.
|
|
||||||
# 2. Run `git clang-format`.
|
|
||||||
# 3. Verify + correct + (un)stage changes.
|
|
||||||
# 4. Commit.
|
|
||||||
#
|
|
||||||
# - Fixup formatting after committing
|
|
||||||
# 1. Commit your changes.
|
|
||||||
# 2. Run `git clang-format HEAD~` - Refer the commit *before* your changes here.
|
|
||||||
# 3. Verify + correct changes, `git difftool -d` can help here.
|
|
||||||
# 4. Stage + commit, potentially with `--amend` (means to fixup the last commit).
|
|
||||||
#
|
|
||||||
# To run clang-format on all sourcefiles, use the following line:
|
|
||||||
# $ git ls-files 'src/*.[ch]' 'src/*.cc' | xargs clang-format -i -style=file
|
# $ git ls-files 'src/*.[ch]' 'src/*.cc' | xargs clang-format -i -style=file
|
||||||
#
|
|
||||||
# You can find more information on the different config parameters in this file here:
|
# You can find more information on the different config parameters in this file here:
|
||||||
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
|
# https://clang.llvm.org/docs/ClangFormatStyleOptions.html
|
||||||
---
|
---
|
||||||
|
|
|
@ -54,8 +54,7 @@
|
||||||
for a list of possible flags. On success, <parameter>creds</parameter> contains a new
|
for a list of possible flags. On success, <parameter>creds</parameter> contains a new
|
||||||
<structname>sd_bus_creds</structname> instance with the requested information. Ownership of this instance
|
<structname>sd_bus_creds</structname> instance with the requested information. Ownership of this instance
|
||||||
belongs to the caller and it should be freed once no longer needed by calling
|
belongs to the caller and it should be freed once no longer needed by calling
|
||||||
<citerefentry><refentrytitle>sd_bus_creds_unref</refentrytitle><manvolnum>3</manvolnum></citerefentry>.
|
<function>sd_bus_creds_unref()</function>.</para>
|
||||||
</para>
|
|
||||||
|
|
||||||
<para><function>sd_bus_get_owner_creds()</function> queries the credentials of the creator of the given
|
<para><function>sd_bus_get_owner_creds()</function> queries the credentials of the creator of the given
|
||||||
bus. The <parameter>mask</parameter> and <parameter>creds</parameter> parameters behave the same as in
|
bus. The <parameter>mask</parameter> and <parameter>creds</parameter> parameters behave the same as in
|
||||||
|
@ -114,8 +113,8 @@
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd-bus</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd-bus</refentrytitle><manvolnum>3</manvolnum></citerefentry>
|
||||||
<citerefentry><refentrytitle>sd_bus_creds_unref</refentrytitle><manvolnum>3</manvolnum></citerefentry>
|
|
||||||
</para>
|
</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
||||||
</refentry>
|
</refentry>
|
||||||
|
|
|
@ -2010,9 +2010,6 @@ int cg_unified_cached(bool flush) {
|
||||||
unified_cache = CGROUP_UNIFIED_NONE;
|
unified_cache = CGROUP_UNIFIED_NONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (F_TYPE_EQUAL(fs.f_type, SYSFS_MAGIC)) {
|
|
||||||
return log_debug_errno(SYNTHETIC_ERRNO(ENOMEDIUM),
|
|
||||||
"No filesystem is currently mounted on /sys/fs/cgroup.");
|
|
||||||
} else
|
} else
|
||||||
return log_debug_errno(SYNTHETIC_ERRNO(ENOMEDIUM),
|
return log_debug_errno(SYNTHETIC_ERRNO(ENOMEDIUM),
|
||||||
"Unknown filesystem type %llx mounted on /sys/fs/cgroup.",
|
"Unknown filesystem type %llx mounted on /sys/fs/cgroup.",
|
||||||
|
|
|
@ -44,13 +44,6 @@ static void test_cg_split_spec(void) {
|
||||||
|
|
||||||
static void test_cg_create(void) {
|
static void test_cg_create(void) {
|
||||||
log_info("/* %s */", __func__);
|
log_info("/* %s */", __func__);
|
||||||
int r;
|
|
||||||
|
|
||||||
r = cg_unified_cached(false);
|
|
||||||
if (r < 0) {
|
|
||||||
log_info_errno(r, "Skipping %s: %m", __func__);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
_cleanup_free_ char *here = NULL;
|
_cleanup_free_ char *here = NULL;
|
||||||
assert_se(cg_pid_get_path_shifted(0, NULL, &here) >= 0);
|
assert_se(cg_pid_get_path_shifted(0, NULL, &here) >= 0);
|
||||||
|
@ -60,6 +53,7 @@ static void test_cg_create(void) {
|
||||||
*test_c = prefix_roota(here, "/test-b/test-c"),
|
*test_c = prefix_roota(here, "/test-b/test-c"),
|
||||||
*test_d = prefix_roota(here, "/test-b/test-d");
|
*test_d = prefix_roota(here, "/test-b/test-d");
|
||||||
char *path;
|
char *path;
|
||||||
|
int r;
|
||||||
|
|
||||||
log_info("Paths for test:\n%s\n%s", test_a, test_b);
|
log_info("Paths for test:\n%s\n%s", test_a, test_b);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue