Commit 4e6db592 authored by Kay Sievers's avatar Kay Sievers
Browse files

bus: rename KDBUS_CMD_FNAME_POLICY_NONE -> KDBUS_CMD_FNAME_POLICY_OPEN

parent e74d860c
...@@ -409,7 +409,7 @@ int bus_kernel_create(const char *name, char **s) { ...@@ -409,7 +409,7 @@ int bus_kernel_create(const char *name, char **s) {
fname = alloca(offsetof(struct kdbus_cmd_fname, name) + DECIMAL_STR_MAX(uid_t) + 1 + l + 1); fname = alloca(offsetof(struct kdbus_cmd_fname, name) + DECIMAL_STR_MAX(uid_t) + 1 + l + 1);
sprintf(fname->name, "%lu-%s", (unsigned long) getuid(), name); sprintf(fname->name, "%lu-%s", (unsigned long) getuid(), name);
fname->size = offsetof(struct kdbus_cmd_fname, name) + strlen(fname->name) + 1; fname->size = offsetof(struct kdbus_cmd_fname, name) + strlen(fname->name) + 1;
fname->kernel_flags = KDBUS_CMD_FNAME_ACCESS_WORLD | KDBUS_CMD_FNAME_POLICY_NONE; fname->kernel_flags = KDBUS_CMD_FNAME_ACCESS_WORLD | KDBUS_CMD_FNAME_POLICY_OPEN;
fname->user_flags = 0; fname->user_flags = 0;
p = strjoin("/dev/kdbus/", fname->name, "/bus", NULL); p = strjoin("/dev/kdbus/", fname->name, "/bus", NULL);
......
...@@ -201,7 +201,7 @@ enum { ...@@ -201,7 +201,7 @@ enum {
enum { enum {
KDBUS_CMD_FNAME_ACCESS_GROUP = 1, KDBUS_CMD_FNAME_ACCESS_GROUP = 1,
KDBUS_CMD_FNAME_ACCESS_WORLD = 2, KDBUS_CMD_FNAME_ACCESS_WORLD = 2,
KDBUS_CMD_FNAME_POLICY_NONE = 4, KDBUS_CMD_FNAME_POLICY_OPEN = 4,
}; };
struct kdbus_cmd_hello { struct kdbus_cmd_hello {
......
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
/systemd-random-seed-load.service /systemd-random-seed-load.service
/systemd-random-seed-save.service /systemd-random-seed-save.service
/systemd-initctl.service /systemd-initctl.service
/systemd-static-nodes.service
/getty@.service /getty@.service
/systemd-update-utmp-runlevel.service /systemd-update-utmp-runlevel.service
/systemd-update-utmp-shutdown.service /systemd-update-utmp-shutdown.service
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment