From 4deba285591ad2a388496d9c017da25e68db6f30 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 31 Dec 2011 03:24:31 +0100 Subject: logind: move more files into subdirectory --- src/.gitignore | 1 - src/libsystemd-login.sym | 35 ------------ src/login/.gitignore | 1 + src/login/libsystemd-login.sym | 35 ++++++++++++ src/login/org.freedesktop.login1.conf | 86 +++++++++++++++++++++++++++++ src/login/org.freedesktop.login1.policy.in | 89 ++++++++++++++++++++++++++++++ src/login/org.freedesktop.login1.service | 12 ++++ src/login/systemd-logind.conf | 16 ++++++ src/org.freedesktop.login1.conf | 86 ----------------------------- src/org.freedesktop.login1.policy.in | 89 ------------------------------ src/org.freedesktop.login1.service | 12 ---- src/systemd-logind.conf | 16 ------ 12 files changed, 239 insertions(+), 239 deletions(-) delete mode 100644 src/libsystemd-login.sym create mode 100644 src/login/.gitignore create mode 100644 src/login/libsystemd-login.sym create mode 100644 src/login/org.freedesktop.login1.conf create mode 100644 src/login/org.freedesktop.login1.policy.in create mode 100644 src/login/org.freedesktop.login1.service create mode 100644 src/login/systemd-logind.conf delete mode 100644 src/org.freedesktop.login1.conf delete mode 100644 src/org.freedesktop.login1.policy.in delete mode 100644 src/org.freedesktop.login1.service delete mode 100644 src/systemd-logind.conf (limited to 'src') diff --git a/src/.gitignore b/src/.gitignore index a3fd20b404..ff2737b761 100644 --- a/src/.gitignore +++ b/src/.gitignore @@ -1,7 +1,6 @@ load-fragment-gperf-nulstr.c load-fragment-gperf.c load-fragment-gperf.gperf -logind-gperf.c org.freedesktop.systemd1.policy.in 99-systemd.rules org.freedesktop.hostname1.policy diff --git a/src/libsystemd-login.sym b/src/libsystemd-login.sym deleted file mode 100644 index 0d51fa76e7..0000000000 --- a/src/libsystemd-login.sym +++ /dev/null @@ -1,35 +0,0 @@ -/*** - This file is part of systemd. - - systemd is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. -***/ - -/* Original symbols from systemd v31 */ - -LIBSYSTEMD_LOGIN_31 { -global: - sd_get_seats; - sd_get_sessions; - sd_get_uids; - sd_login_monitor_flush; - sd_login_monitor_get_fd; - sd_login_monitor_new; - sd_login_monitor_unref; - sd_pid_get_owner_uid; - sd_pid_get_session; - sd_seat_can_multi_session; - sd_seat_get_active; - sd_seat_get_sessions; - sd_session_get_seat; - sd_session_get_uid; - sd_session_is_active; - sd_uid_get_seats; - sd_uid_get_sessions; - sd_uid_get_state; - sd_uid_is_on_seat; -local: - *; -}; diff --git a/src/login/.gitignore b/src/login/.gitignore new file mode 100644 index 0000000000..7c420cb09b --- /dev/null +++ b/src/login/.gitignore @@ -0,0 +1 @@ +logind-gperf.c diff --git a/src/login/libsystemd-login.sym b/src/login/libsystemd-login.sym new file mode 100644 index 0000000000..0d51fa76e7 --- /dev/null +++ b/src/login/libsystemd-login.sym @@ -0,0 +1,35 @@ +/*** + This file is part of systemd. + + systemd is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. +***/ + +/* Original symbols from systemd v31 */ + +LIBSYSTEMD_LOGIN_31 { +global: + sd_get_seats; + sd_get_sessions; + sd_get_uids; + sd_login_monitor_flush; + sd_login_monitor_get_fd; + sd_login_monitor_new; + sd_login_monitor_unref; + sd_pid_get_owner_uid; + sd_pid_get_session; + sd_seat_can_multi_session; + sd_seat_get_active; + sd_seat_get_sessions; + sd_session_get_seat; + sd_session_get_uid; + sd_session_is_active; + sd_uid_get_seats; + sd_uid_get_sessions; + sd_uid_get_state; + sd_uid_is_on_seat; +local: + *; +}; diff --git a/src/login/org.freedesktop.login1.conf b/src/login/org.freedesktop.login1.conf new file mode 100644 index 0000000000..c423ef5930 --- /dev/null +++ b/src/login/org.freedesktop.login1.conf @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/login/org.freedesktop.login1.policy.in b/src/login/org.freedesktop.login1.policy.in new file mode 100644 index 0000000000..adc904886d --- /dev/null +++ b/src/login/org.freedesktop.login1.policy.in @@ -0,0 +1,89 @@ + + + + + + + + The systemd Project + http://www.freedesktop.org/wiki/Software/systemd + + + <_description>Allow non-logged-in users to run programs + <_message>Authentication is required to allow a non-logged-in user to run programs + + auth_admin_keep + auth_admin_keep + auth_admin_keep + + + + + <_description>Allow attaching devices to seats + <_message>Authentication is required to allow attaching a device to a seat + + auth_admin_keep + auth_admin_keep + auth_admin_keep + + + + + <_description>Flush device to seat attachments + <_message>Authentication is required to allow resetting how devices are attached to seats + + auth_admin_keep + auth_admin_keep + auth_admin_keep + + + + + <_description>Power off the system + <_message>Authentication is required to allow powering off the system + + auth_admin_keep + auth_admin_keep + yes + + + + + <_description>Power off the system when other users are logged in + <_message>Authentication is required to allow powering off the system while other users are logged in + + auth_admin_keep + auth_admin_keep + auth_admin_keep + + + + + <_description>Reboot the system + <_message>Authentication is required to allow rebooting the system + + auth_admin_keep + auth_admin_keep + yes + + + + + <_description>Reboot the system when other users are logged in + <_message>Authentication is required to allow rebooting the system while other users are logged in + + auth_admin_keep + auth_admin_keep + auth_admin_keep + + + + diff --git a/src/login/org.freedesktop.login1.service b/src/login/org.freedesktop.login1.service new file mode 100644 index 0000000000..4a64177e30 --- /dev/null +++ b/src/login/org.freedesktop.login1.service @@ -0,0 +1,12 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +[D-BUS Service] +Name=org.freedesktop.login1 +Exec=/bin/false +User=root +SystemdService=dbus-org.freedesktop.login1.service diff --git a/src/login/systemd-logind.conf b/src/login/systemd-logind.conf new file mode 100644 index 0000000000..99098040f4 --- /dev/null +++ b/src/login/systemd-logind.conf @@ -0,0 +1,16 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# See system-logind.conf(5) for details + +[Login] +#NAutoVTs=6 +#KillUserProcesses=no +#KillOnlyUsers= +#KillExcludeUsers=root +#Controllers= +#ResetControllers=cpu diff --git a/src/org.freedesktop.login1.conf b/src/org.freedesktop.login1.conf deleted file mode 100644 index c423ef5930..0000000000 --- a/src/org.freedesktop.login1.conf +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/org.freedesktop.login1.policy.in b/src/org.freedesktop.login1.policy.in deleted file mode 100644 index adc904886d..0000000000 --- a/src/org.freedesktop.login1.policy.in +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - The systemd Project - http://www.freedesktop.org/wiki/Software/systemd - - - <_description>Allow non-logged-in users to run programs - <_message>Authentication is required to allow a non-logged-in user to run programs - - auth_admin_keep - auth_admin_keep - auth_admin_keep - - - - - <_description>Allow attaching devices to seats - <_message>Authentication is required to allow attaching a device to a seat - - auth_admin_keep - auth_admin_keep - auth_admin_keep - - - - - <_description>Flush device to seat attachments - <_message>Authentication is required to allow resetting how devices are attached to seats - - auth_admin_keep - auth_admin_keep - auth_admin_keep - - - - - <_description>Power off the system - <_message>Authentication is required to allow powering off the system - - auth_admin_keep - auth_admin_keep - yes - - - - - <_description>Power off the system when other users are logged in - <_message>Authentication is required to allow powering off the system while other users are logged in - - auth_admin_keep - auth_admin_keep - auth_admin_keep - - - - - <_description>Reboot the system - <_message>Authentication is required to allow rebooting the system - - auth_admin_keep - auth_admin_keep - yes - - - - - <_description>Reboot the system when other users are logged in - <_message>Authentication is required to allow rebooting the system while other users are logged in - - auth_admin_keep - auth_admin_keep - auth_admin_keep - - - - diff --git a/src/org.freedesktop.login1.service b/src/org.freedesktop.login1.service deleted file mode 100644 index 4a64177e30..0000000000 --- a/src/org.freedesktop.login1.service +++ /dev/null @@ -1,12 +0,0 @@ -# This file is part of systemd. -# -# systemd is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. - -[D-BUS Service] -Name=org.freedesktop.login1 -Exec=/bin/false -User=root -SystemdService=dbus-org.freedesktop.login1.service diff --git a/src/systemd-logind.conf b/src/systemd-logind.conf deleted file mode 100644 index 99098040f4..0000000000 --- a/src/systemd-logind.conf +++ /dev/null @@ -1,16 +0,0 @@ -# This file is part of systemd. -# -# systemd is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# See system-logind.conf(5) for details - -[Login] -#NAutoVTs=6 -#KillUserProcesses=no -#KillOnlyUsers= -#KillExcludeUsers=root -#Controllers= -#ResetControllers=cpu -- cgit v1.2.3-54-g00ecf