X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flibsystemd%2Fsd-bus%2Fkdbus.h;h=e1fa21dee0d9b1fa11e33cff1d7d5ea1f760b8a9;hb=659b937e670a5cb423a274b97b1eb60abd7d218f;hp=1ea4329ea2642bbd572c5937624f389028ed169b;hpb=1a2409e262da65a4b0ca8ab18fcf5eabd2d404ca;p=elogind.git diff --git a/src/libsystemd/sd-bus/kdbus.h b/src/libsystemd/sd-bus/kdbus.h index 1ea4329ea..e1fa21dee 100644 --- a/src/libsystemd/sd-bus/kdbus.h +++ b/src/libsystemd/sd-bus/kdbus.h @@ -26,6 +26,7 @@ #define KDBUS_DST_ID_NAME (0) #define KDBUS_MATCH_ID_ANY (~0ULL) #define KDBUS_DST_ID_BROADCAST (~0ULL) +#define KDBUS_FLAG_KERNEL (1ULL << 63) /** * struct kdbus_notify_id_change - name registry change message @@ -500,8 +501,6 @@ enum kdbus_policy_type { * enum kdbus_hello_flags - flags for struct kdbus_cmd_hello * @KDBUS_HELLO_ACCEPT_FD: The connection allows the reception of * any passed file descriptors - * @KDBUS_HELLO_ACCEPT_MEMFD: The connection allows the reception of - * any passed memfd file descriptors * @KDBUS_HELLO_ACTIVATOR: Special-purpose connection which registers * a well-know name for a process to be started * when traffic arrives @@ -516,10 +515,9 @@ enum kdbus_policy_type { */ enum kdbus_hello_flags { KDBUS_HELLO_ACCEPT_FD = 1ULL << 0, - KDBUS_HELLO_ACCEPT_MEMFD = 1ULL << 1, - KDBUS_HELLO_ACTIVATOR = 1ULL << 2, - KDBUS_HELLO_POLICY_HOLDER = 1ULL << 3, - KDBUS_HELLO_MONITOR = 1ULL << 4, + KDBUS_HELLO_ACTIVATOR = 1ULL << 1, + KDBUS_HELLO_POLICY_HOLDER = 1ULL << 2, + KDBUS_HELLO_MONITOR = 1ULL << 3, }; /** @@ -528,7 +526,8 @@ enum kdbus_hello_flags { * @KDBUS_ATTACH_CREDS: Credentials * @KDBUS_ATTACH_AUXGROUPS: Auxiliary groups * @KDBUS_ATTACH_NAMES: Well-known names - * @KDBUS_ATTACH_COMM: The "comm" process identifier + * @KDBUS_ATTACH_COMM_TID: The "comm" process identifier of the TID + * @KDBUS_ATTACH_COMM_PID: The "comm" process identifier of the PID * @KDBUS_ATTACH_EXE: The path of the executable * @KDBUS_ATTACH_CMDLINE: The process command line * @KDBUS_ATTACH_CGROUP: The croup membership @@ -543,21 +542,21 @@ enum kdbus_attach_flags { KDBUS_ATTACH_CREDS = 1ULL << 1, KDBUS_ATTACH_AUXGROUPS = 1ULL << 2, KDBUS_ATTACH_NAMES = 1ULL << 3, - KDBUS_ATTACH_COMM = 1ULL << 4, - KDBUS_ATTACH_EXE = 1ULL << 5, - KDBUS_ATTACH_CMDLINE = 1ULL << 6, - KDBUS_ATTACH_CGROUP = 1ULL << 7, - KDBUS_ATTACH_CAPS = 1ULL << 8, - KDBUS_ATTACH_SECLABEL = 1ULL << 9, - KDBUS_ATTACH_AUDIT = 1ULL << 10, - KDBUS_ATTACH_CONN_NAME = 1ULL << 11, - _KDBUS_ATTACH_ALL = (1ULL << 12) - 1, + KDBUS_ATTACH_TID_COMM = 1ULL << 4, + KDBUS_ATTACH_PID_COMM = 1ULL << 5, + KDBUS_ATTACH_EXE = 1ULL << 6, + KDBUS_ATTACH_CMDLINE = 1ULL << 7, + KDBUS_ATTACH_CGROUP = 1ULL << 8, + KDBUS_ATTACH_CAPS = 1ULL << 9, + KDBUS_ATTACH_SECLABEL = 1ULL << 10, + KDBUS_ATTACH_AUDIT = 1ULL << 11, + KDBUS_ATTACH_CONN_NAME = 1ULL << 12, + _KDBUS_ATTACH_ALL = (1ULL << 13) - 1, }; /** * struct kdbus_cmd_hello - struct to say hello to kdbus * @size: The total size of the structure - * @features: Feature negotiation bitmask * @conn_flags: Connection flags (KDBUS_HELLO_*). * @attach_flags: Mask of metadata to attach to each message sent * (KDBUS_ATTACH_*) @@ -577,7 +576,6 @@ enum kdbus_attach_flags { */ struct kdbus_cmd_hello { __u64 size; - __u64 features; __u64 conn_flags; __u64 attach_flags; __u64 bus_flags; @@ -601,7 +599,6 @@ enum kdbus_make_flags { /** * struct kdbus_cmd_make - struct to make a bus, an endpoint or a domain * @size: The total size of the struct - * @features: Feature negotiation bitmask * @flags: Properties for the bus/ep/domain to create * @items: Items describing details * @@ -610,7 +607,6 @@ enum kdbus_make_flags { */ struct kdbus_cmd_make { __u64 size; - __u64 features; __u64 flags; struct kdbus_item items[0]; } __attribute__((aligned(8)));