1
0
mirror of https://github.com/systemd/systemd synced 2026-04-11 09:34:51 +02:00

Compare commits

..

No commits in common. "34b56848467a0348b724148fe3e0d9080eb56402" and "a420d71793bcbc1539a63be60f83cdc14373ea4a" have entirely different histories.

6 changed files with 6 additions and 82 deletions

View File

@ -63,10 +63,8 @@ node /org/freedesktop/home1 {
out b incomplete, out b incomplete,
out o bus_path); out o bus_path);
ListHomes(out a(susussso) home_areas); ListHomes(out a(susussso) home_areas);
@org.freedesktop.systemd1.Privileged("true")
ActivateHome(in s user_name, ActivateHome(in s user_name,
in s secret); in s secret);
@org.freedesktop.systemd1.Privileged("true")
DeactivateHome(in s user_name); DeactivateHome(in s user_name);
RegisterHome(in s user_record); RegisterHome(in s user_record);
UnregisterHome(in s user_name); UnregisterHome(in s user_name);
@ -74,7 +72,6 @@ node /org/freedesktop/home1 {
RealizeHome(in s user_name, RealizeHome(in s user_name,
in s secret); in s secret);
RemoveHome(in s user_name); RemoveHome(in s user_name);
@org.freedesktop.systemd1.Privileged("true")
FixateHome(in s user_name, FixateHome(in s user_name,
in s secret); in s secret);
AuthenticateHome(in s user_name, AuthenticateHome(in s user_name,
@ -86,26 +83,19 @@ node /org/freedesktop/home1 {
ChangePasswordHome(in s user_name, ChangePasswordHome(in s user_name,
in s new_secret, in s new_secret,
in s old_secret); in s old_secret);
@org.freedesktop.systemd1.Privileged("true")
LockHome(in s user_name); LockHome(in s user_name);
@org.freedesktop.systemd1.Privileged("true")
UnlockHome(in s user_name, UnlockHome(in s user_name,
in s secret); in s secret);
AcquireHome(in s user_name, AcquireHome(in s user_name,
in s secret, in s secret,
in b please_suspend, in b please_suspend,
out h send_fd); out h send_fd);
@org.freedesktop.systemd1.Privileged("true")
RefHome(in s user_name, RefHome(in s user_name,
in b please_suspend, in b please_suspend,
out h send_fd); out h send_fd);
@org.freedesktop.systemd1.Privileged("true")
ReleaseHome(in s user_name); ReleaseHome(in s user_name);
@org.freedesktop.systemd1.Privileged("true")
LockAllHomes(); LockAllHomes();
@org.freedesktop.systemd1.Privileged("true")
DeactivateAllHomes(); DeactivateAllHomes();
@org.freedesktop.systemd1.Privileged("true")
Rebalance(); Rebalance();
properties: properties:
readonly a(sso) AutoLogin = [...]; readonly a(sso) AutoLogin = [...];
@ -383,14 +373,11 @@ node /org/freedesktop/home1 {
node /org/freedesktop/home1/home { node /org/freedesktop/home1/home {
interface org.freedesktop.home1.Home { interface org.freedesktop.home1.Home {
methods: methods:
@org.freedesktop.systemd1.Privileged("true")
Activate(in s secret); Activate(in s secret);
@org.freedesktop.systemd1.Privileged("true")
Deactivate(); Deactivate();
Unregister(); Unregister();
Realize(in s secret); Realize(in s secret);
Remove(); Remove();
@org.freedesktop.systemd1.Privileged("true")
Fixate(in s secret); Fixate(in s secret);
Authenticate(in s secret); Authenticate(in s secret);
Update(in s user_record); Update(in s user_record);
@ -398,18 +385,13 @@ node /org/freedesktop/home1/home {
in s secret); in s secret);
ChangePassword(in s new_secret, ChangePassword(in s new_secret,
in s old_secret); in s old_secret);
@org.freedesktop.systemd1.Privileged("true")
Lock(); Lock();
@org.freedesktop.systemd1.Privileged("true")
Unlock(in s secret); Unlock(in s secret);
@org.freedesktop.systemd1.Privileged("true")
Acquire(in s secret, Acquire(in s secret,
in b please_suspend, in b please_suspend,
out h send_fd); out h send_fd);
@org.freedesktop.systemd1.Privileged("true")
Ref(in b please_suspend, Ref(in b please_suspend,
out h send_fd); out h send_fd);
@org.freedesktop.systemd1.Privileged("true")
Release(); Release();
properties: properties:
@org.freedesktop.DBus.Property.EmitsChangedSignal("const") @org.freedesktop.DBus.Property.EmitsChangedSignal("const")

View File

@ -56,7 +56,6 @@ node /org/freedesktop/login1 {
ListUsers(out a(uso) users); ListUsers(out a(uso) users);
ListSeats(out a(so) seats); ListSeats(out a(so) seats);
ListInhibitors(out a(ssssuu) inhibitors); ListInhibitors(out a(ssssuu) inhibitors);
@org.freedesktop.systemd1.Privileged("true")
CreateSession(in u uid, CreateSession(in u uid,
in u pid, in u pid,
in s service, in s service,
@ -79,7 +78,6 @@ node /org/freedesktop/login1 {
out s seat_id, out s seat_id,
out u vtnr, out u vtnr,
out b existing); out b existing);
@org.freedesktop.systemd1.Privileged("true")
ReleaseSession(in s session_id); ReleaseSession(in s session_id);
ActivateSession(in s session_id); ActivateSession(in s session_id);
ActivateSessionOnSeat(in s session_id, ActivateSessionOnSeat(in s session_id,

View File

@ -46,7 +46,6 @@ node /org/freedesktop/machine1 {
out o machine); out o machine);
ListMachines(out a(ssso) machines); ListMachines(out a(ssso) machines);
ListImages(out a(ssbttto) images); ListImages(out a(ssbttto) images);
@org.freedesktop.systemd1.Privileged("true")
CreateMachine(in s name, CreateMachine(in s name,
in ay id, in ay id,
in s service, in s service,
@ -55,7 +54,6 @@ node /org/freedesktop/machine1 {
in s root_directory, in s root_directory,
in a(sv) scope_properties, in a(sv) scope_properties,
out o path); out o path);
@org.freedesktop.systemd1.Privileged("true")
CreateMachineWithNetwork(in s name, CreateMachineWithNetwork(in s name,
in ay id, in ay id,
in s service, in s service,
@ -65,7 +63,6 @@ node /org/freedesktop/machine1 {
in ai ifindices, in ai ifindices,
in a(sv) scope_properties, in a(sv) scope_properties,
out o path); out o path);
@org.freedesktop.systemd1.Privileged("true")
RegisterMachine(in s name, RegisterMachine(in s name,
in ay id, in ay id,
in s service, in s service,
@ -73,7 +70,6 @@ node /org/freedesktop/machine1 {
in u leader, in u leader,
in s root_directory, in s root_directory,
out o path); out o path);
@org.freedesktop.systemd1.Privileged("true")
RegisterMachineWithNetwork(in s name, RegisterMachineWithNetwork(in s name,
in ay id, in ay id,
in s service, in s service,
@ -91,7 +87,6 @@ node /org/freedesktop/machine1 {
out a(iay) addresses); out a(iay) addresses);
GetMachineOSRelease(in s name, GetMachineOSRelease(in s name,
out a{ss} fields); out a{ss} fields);
@org.freedesktop.systemd1.Privileged("true")
OpenMachinePTY(in s name, OpenMachinePTY(in s name,
out h pty, out h pty,
out s pty_path); out s pty_path);

View File

@ -153,7 +153,6 @@ node /org/freedesktop/systemd1 {
CancelJob(in u id); CancelJob(in u id);
ClearJobs(); ClearJobs();
ResetFailed(); ResetFailed();
@org.freedesktop.systemd1.Privileged("true")
SetShowStatus(in s mode); SetShowStatus(in s mode);
ListUnits(out a(ssssssouso) units); ListUnits(out a(ssssssouso) units);
ListUnitsFiltered(in as states, ListUnitsFiltered(in as states,
@ -170,17 +169,11 @@ node /org/freedesktop/systemd1 {
DumpByFileDescriptor(out h fd); DumpByFileDescriptor(out h fd);
Reload(); Reload();
Reexecute(); Reexecute();
@org.freedesktop.systemd1.Privileged("true")
Exit(); Exit();
@org.freedesktop.systemd1.Privileged("true")
Reboot(); Reboot();
@org.freedesktop.systemd1.Privileged("true")
PowerOff(); PowerOff();
@org.freedesktop.systemd1.Privileged("true")
Halt(); Halt();
@org.freedesktop.systemd1.Privileged("true")
KExec(); KExec();
@org.freedesktop.systemd1.Privileged("true")
SwitchRoot(in s new_root, SwitchRoot(in s new_root,
in s init); in s init);
SetEnvironment(in as assignments); SetEnvironment(in as assignments);

View File

@ -462,58 +462,22 @@ struct mount_attr {
struct mount_attr; struct mount_attr;
#endif #endif
#ifndef MOUNT_ATTR_RDONLY
#define MOUNT_ATTR_RDONLY 0x00000001 /* Mount read-only */
#endif
#ifndef MOUNT_ATTR_NOSUID
#define MOUNT_ATTR_NOSUID 0x00000002 /* Ignore suid and sgid bits */
#endif
#ifndef MOUNT_ATTR_NODEV
#define MOUNT_ATTR_NODEV 0x00000004 /* Disallow access to device special files */
#endif
#ifndef MOUNT_ATTR_NOEXEC
#define MOUNT_ATTR_NOEXEC 0x00000008 /* Disallow program execution */
#endif
#ifndef MOUNT_ATTR__ATIME
#define MOUNT_ATTR__ATIME 0x00000070 /* Setting on how atime should be updated */
#endif
#ifndef MOUNT_ATTR_RELATIME
#define MOUNT_ATTR_RELATIME 0x00000000 /* - Update atime relative to mtime/ctime. */
#endif
#ifndef MOUNT_ATTR_NOATIME
#define MOUNT_ATTR_NOATIME 0x00000010 /* - Do not update access times. */
#endif
#ifndef MOUNT_ATTR_STRICTATIME
#define MOUNT_ATTR_STRICTATIME 0x00000020 /* - Always perform atime updates */
#endif
#ifndef MOUNT_ATTR_NODIRATIME
#define MOUNT_ATTR_NODIRATIME 0x00000080 /* Do not update directory access times */
#endif
#ifndef MOUNT_ATTR_IDMAP #ifndef MOUNT_ATTR_IDMAP
#define MOUNT_ATTR_IDMAP 0x00100000 /* Idmap mount to @userns_fd in struct mount_attr. */ #define MOUNT_ATTR_IDMAP 0x00100000
#endif #endif
#ifndef MOUNT_ATTR_NOSYMFOLLOW #ifndef MOUNT_ATTR_NOSYMFOLLOW
#define MOUNT_ATTR_NOSYMFOLLOW 0x00200000 /* Do not follow symlinks */ #define MOUNT_ATTR_NOSYMFOLLOW 0x00200000
#endif
#ifndef MOUNT_ATTR_SIZE_VER0
#define MOUNT_ATTR_SIZE_VER0 32 /* sizeof first published struct */
#endif #endif
#ifndef AT_RECURSIVE #ifndef AT_RECURSIVE
#define AT_RECURSIVE 0x8000 #define AT_RECURSIVE 0x8000
#endif #endif
#ifndef MOUNT_ATTR_SIZE_VER0
#define MOUNT_ATTR_SIZE_VER0 32
#endif
static inline int missing_mount_setattr( static inline int missing_mount_setattr(
int dfd, int dfd,
const char *path, const char *path,

View File

@ -47,14 +47,6 @@ def print_method(declarations, elem, *, prefix, file, is_signal=False):
klass = 'signal' if is_signal else 'method' klass = 'signal' if is_signal else 'method'
declarations[klass].append(name) declarations[klass].append(name)
# @org.freedesktop.systemd1.Privileged("true")
# SetShowStatus(in s mode);
for anno in elem.findall('./annotation'):
anno_name = anno.get('name')
anno_value = anno.get('value')
print(f'''{prefix}@{anno_name}("{anno_value}")''', file=file)
print(f'''{prefix}{name}(''', file=file, end='') print(f'''{prefix}{name}(''', file=file, end='')
lead = ',\n' + prefix + ' ' * len(name) + ' ' lead = ',\n' + prefix + ' ' * len(name) + ' '