From 531cca264a21552d80255334f9bf9f3e2cf19dbd Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 11 May 2018 16:38:12 +0200 Subject: Fork as new project: lightdm-remote-session-remoteconfigure. --- .bzrignore | 3 - AUTHOR-glue | 1 - AUTHORS | 2 +- Makefile.am | 73 +++------ README | 2 +- README.md | 1 + autogen.sh | 9 -- configure.ac | 12 +- debian/changelog | 6 + debian/compat | 1 + debian/control | 27 ++++ debian/copyright | 49 ++++++ .../lightdm-remote-session-remoteconfigure.default | 1 + debian/rules | 5 + debian/source/format | 1 + debian/upstream/signing-key.asc | 180 +++++++++++++++++++++ debian/watch | 3 + firefox-remoteconfigure.desktop.in | 15 ++ firefox-remoteconfigure.sh | 9 ++ firefox-uccsconfigure.desktop.in | 15 -- firefox-uccsconfigure.sh | 4 - lightdm-remote-remoteconfigure | 2 + lightdm-remote-session-remoteconfigure.default | 3 + lightdm-remote-session-remoteconfigure.in | 71 ++++++++ lightdm-remote-session-uccsconfigure.in | 71 -------- lightdm-remote-uccsconfigure | 2 - remoteconfigure-session-wrapper.c | 32 ++++ remoteconfigure-session.in | 23 +++ remoteconfigure.desktop.in | 8 + uccsconfigure-session-wrapper.c | 32 ---- uccsconfigure-session.in | 30 ---- uccsconfigure.desktop.in | 8 - 32 files changed, 462 insertions(+), 239 deletions(-) delete mode 100644 .bzrignore delete mode 100644 AUTHOR-glue mode change 100644 => 120000 README create mode 100644 README.md delete mode 100755 autogen.sh create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 120000 debian/lightdm-remote-session-remoteconfigure.default create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/upstream/signing-key.asc create mode 100644 debian/watch create mode 100644 firefox-remoteconfigure.desktop.in create mode 100755 firefox-remoteconfigure.sh delete mode 100644 firefox-uccsconfigure.desktop.in delete mode 100755 firefox-uccsconfigure.sh create mode 100644 lightdm-remote-remoteconfigure create mode 100644 lightdm-remote-session-remoteconfigure.default create mode 100644 lightdm-remote-session-remoteconfigure.in delete mode 100644 lightdm-remote-session-uccsconfigure.in delete mode 100644 lightdm-remote-uccsconfigure create mode 100644 remoteconfigure-session-wrapper.c create mode 100644 remoteconfigure-session.in create mode 100644 remoteconfigure.desktop.in delete mode 100644 uccsconfigure-session-wrapper.c delete mode 100644 uccsconfigure-session.in delete mode 100644 uccsconfigure.desktop.in diff --git a/.bzrignore b/.bzrignore deleted file mode 100644 index fb9dc36..0000000 --- a/.bzrignore +++ /dev/null @@ -1,3 +0,0 @@ -uccsconfigure.desktop -uccsconfigure-session -firefox-uccsconfigure.desktop diff --git a/AUTHOR-glue b/AUTHOR-glue deleted file mode 100644 index 8bda1b7..0000000 --- a/AUTHOR-glue +++ /dev/null @@ -1 +0,0 @@ -s/Ted Gould <.*@.*>/Ted Gould / diff --git a/AUTHORS b/AUTHORS index 0af8cba..9e9490c 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1 +1 @@ -# Generated by Makefile +Ted Gould \ No newline at end of file diff --git a/Makefile.am b/Makefile.am index 4b80dd7..356047f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -7,7 +7,7 @@ CLEANFILES = lightdm_sessiondir = $(datadir)/lightdm/remote-sessions lightdm_session_DATA = \ - uccsconfigure.desktop + remoteconfigure.desktop %.desktop: %.desktop.in @sed \ @@ -15,8 +15,8 @@ lightdm_session_DATA = \ -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" \ $< > $@ -EXTRA_DIST += uccsconfigure.desktop.in -CLEANFILES += uccsconfigure.desktop +EXTRA_DIST += remoteconfigure.desktop.in +CLEANFILES += remoteconfigure.desktop ############################### # The PAM session @@ -24,9 +24,9 @@ CLEANFILES += uccsconfigure.desktop pam_sessiondir = $(sysconfdir)/pam.d/ pam_session_DATA = \ - lightdm-remote-uccsconfigure + lightdm-remote-remoteconfigure -EXTRA_DIST += lightdm-remote-uccsconfigure +EXTRA_DIST += lightdm-remote-remoteconfigure ############################### # The session script @@ -34,25 +34,25 @@ EXTRA_DIST += lightdm-remote-uccsconfigure session_startdir = $(pkgdatadir) session_start_SCRIPTS = \ - uccsconfigure-session + remoteconfigure-session -uccsconfigure-session: uccsconfigure-session.in +remoteconfigure-session: remoteconfigure-session.in @sed -e "s|\@pkgdatadir\@|$(pkgdatadir)|" $< > $@ @chmod +x $@ -EXTRA_DIST += uccsconfigure-session.in -CLEANFILES += uccsconfigure-session +EXTRA_DIST += remoteconfigure-session.in +CLEANFILES += remoteconfigure-session ############################### # The session wrapper ############################### pkglibexec_PROGRAMS = \ - uccsconfigure-session-wrapper + remoteconfigure-session-wrapper -uccsconfigure_session_wrapper_SOURCES = \ - uccsconfigure-session-wrapper.c -uccsconfigure_session_wrapper_CFLAGS = \ +remoteconfigure_session_wrapper_SOURCES = \ + remoteconfigure-session-wrapper.c +remoteconfigure_session_wrapper_CFLAGS = \ -DPKGDATADIR="\"$(pkgdatadir)\"" \ -Wall -Werror @@ -62,13 +62,13 @@ uccsconfigure_session_wrapper_CFLAGS = \ apparmordir = $(sysconfdir)/apparmor.d/ apparmor_DATA = \ - lightdm-remote-session-uccsconfigure + lightdm-remote-session-remoteconfigure -lightdm-remote-session-uccsconfigure: lightdm-remote-session-uccsconfigure.in +lightdm-remote-session-remoteconfigure: lightdm-remote-session-remoteconfigure.in @sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@ -EXTRA_DIST += lightdm-remote-session-uccsconfigure.in -CLEANFILES += lightdm-remote-session-uccsconfigure +EXTRA_DIST += lightdm-remote-session-remoteconfigure.in +CLEANFILES += lightdm-remote-session-remoteconfigure ############################### # Autostart Firefox @@ -76,10 +76,10 @@ CLEANFILES += lightdm-remote-session-uccsconfigure autostart_filedir = $(pkgdatadir) autostart_file_DATA = \ - firefox-uccsconfigure.desktop + firefox-remoteconfigure.desktop -EXTRA_DIST += firefox-uccsconfigure.desktop.in -CLEANFILES += firefox-uccsconfigure.desktop +EXTRA_DIST += firefox-remoteconfigure.desktop.in +CLEANFILES += firefox-remoteconfigure.desktop ############################### # Firefox Start Script @@ -87,39 +87,10 @@ CLEANFILES += firefox-uccsconfigure.desktop firefox_startdir = $(pkgdatadir) firefox_start_SCRIPTS = \ - firefox-uccsconfigure.sh + firefox-remoteconfigure.sh -EXTRA_DIST += firefox-uccsconfigure.sh +EXTRA_DIST += firefox-remoteconfigure.sh ############################### # Dist check stuff ############################### - -DISTCHECK_CONFIGURE_FLAGS = --enable-localinstall - -dist-hook: - @if test -d "$(top_srcdir)/.bzr"; \ - then \ - echo Creating ChangeLog && \ - ( cd "$(top_srcdir)" && \ - echo '# Generated by Makefile. Do not edit.'; echo; \ - $(top_srcdir)/missing --run bzr log --gnu-changelog ) > ChangeLog.tmp \ - && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \ - || (rm -f ChangeLog.tmp; \ - echo Failed to generate ChangeLog >&2 ); \ - else \ - echo Failed to generate ChangeLog: not a branch >&2; \ - fi - @if test -d "$(top_srcdir)/.bzr"; \ - then \ - echo Creating AUTHORS && \ - ( cd "$(top_srcdir)" && \ - echo '# Generated by Makefile. Do not edit.'; echo; \ - $(top_srcdir)/missing --run bzr log --long --levels=0 | grep -e "^\s*author:" -e "^\s*committer:" | cut -d ":" -f 2 | sed -r -f AUTHOR-glue | sort -u) > AUTHORS.tmp \ - && mv -f AUTHORS.tmp $(top_distdir)/AUTHORS \ - || (rm -f AUTHORS.tmp; \ - echo Failed to generate AUTHORS >&2 ); \ - else \ - echo Failed to generate AUTHORS: not a branch >&2; \ - fi - diff --git a/README b/README deleted file mode 100644 index 7b3e973..0000000 --- a/README +++ /dev/null @@ -1 +0,0 @@ -Configuration for LightDM to use the remote session diff --git a/README b/README new file mode 120000 index 0000000..42061c0 --- /dev/null +++ b/README @@ -0,0 +1 @@ +README.md \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..4ede96f --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Configuration Remote Logon Accounts in LightDM diff --git a/autogen.sh b/autogen.sh deleted file mode 100755 index 5164b66..0000000 --- a/autogen.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -which gnome-autogen.sh || { - echo "Could not find 'gnome-autgen.sh'. Is gnome-common installed?" - exit 1 -} - -. gnome-autogen.sh - diff --git a/configure.ac b/configure.ac index d3e4af4..576d15a 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([lightdm-remote-session-uccsconfigure], [1.1]) +AC_INIT([lightdm-remote-session-remoteconfigure], [1.1]) AM_INIT_AUTOMAKE([1.11 -Wno-portability]) AM_SILENT_RULES([yes]) @@ -7,16 +7,6 @@ AC_PROG_CC AC_PROG_INSTALL AM_PROG_CC_C_O -########################### -# Local Install -########################### - -with_localinstall="no" -AC_ARG_ENABLE(localinstall, AS_HELP_STRING([--enable-localinstall], - [install all files locally (for distcheck)]), - with_localinstall=$enableval, - with_localinstall=no) - AC_CONFIG_FILES([ Makefile ]) diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d45b920 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +lightdm-remote-session-remoteconfigure (0.0.1-0) UNRELEASED; urgency=low + + * Upstream-provided Debian package for lightdm-remote-session-remoteconfigure. + See upstream ChangeLog for recent changes. + + -- Mike Gabriel Mon, 07 May 2018 15:50:29 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..09dcd16 --- /dev/null +++ b/debian/control @@ -0,0 +1,27 @@ +Source: lightdm-remote-session-remoteconfigure +Section: misc +Priority: optional +Maintainer: Artica Project +Uploaders: + Mike Gabriel +Build-Depends: + debhelper (>= 9), + dh-apparmor, + cdbs, + dh-autoreconf, +Standards-Version: 4.1.4 +Homepage: http://github.com/ArcticaProject/lightdm-remote-session-remoteconfigure +Vcs-Git: https://github.com/ArcticaProject/lightdm-remote-session-remoteconfigure/ +Vcs-Browser: https://github.com/ArcticaProject/lightdm-remote-session-remoteconfigure/ + +Package: lightdm-remote-session-remoteconfigure +Architecture: any +Depends: + ${shlibs:Depends}, + ${misc:Depends}, +Suggests: + apparmor, +Description: Configure Remote Logon for LightDM + The configuration files needed and scripts required to launch + a webbrowser from LightDM's Remote Logon prompt box and configure + Remote Logon accounts. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..686b2ac --- /dev/null +++ b/debian/copyright @@ -0,0 +1,49 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: lightdm-remote-session-remoteconfigure +Upstream-Contact: Mike Gabriel +Source: https://github.com/ArcticaProject/lightdm-remote-session-remoteconfigure + +Files: AUTHORS + ChangeLog + Makefile.am + NEWS + README.md + configure.ac + lightdm-remote-session-remoteconfigure.in + lightdm-remote-remoteconfigure + firefox-remoteconfigure.desktop.in + firefox-remoteconfigure.sh + remoteconfigure.desktop.in +Copyright: 2012, Canonical Ltd. + 2017, Mike Gabriel +License: GPL-3 +Comment: + Using license and copyright holders as found in code files. + +Files: remoteconfigure-session-wrapper.c + remoteconfigure-session.in +Copyright: 2012, Canonical Ltd. + 2017, Mike Gabriel +License: GPL-3 + +Files: debian/* +Copyright: + 2012, Canonical Ltd. + 2017, Mike Gabriel +License: GPL-3 + +License: GPL-3 + This package 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; version 3 of the License. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". diff --git a/debian/lightdm-remote-session-remoteconfigure.default b/debian/lightdm-remote-session-remoteconfigure.default new file mode 120000 index 0000000..b36a2c5 --- /dev/null +++ b/debian/lightdm-remote-session-remoteconfigure.default @@ -0,0 +1 @@ +../lightdm-remote-session-remoteconfigure.default \ No newline at end of file diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..4edf62f --- /dev/null +++ b/debian/rules @@ -0,0 +1,5 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/autoreconf.mk +include /usr/share/cdbs/1/class/autotools.mk diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..9f8e9b6 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +1.0 \ No newline at end of file diff --git a/debian/upstream/signing-key.asc b/debian/upstream/signing-key.asc new file mode 100644 index 0000000..969a543 --- /dev/null +++ b/debian/upstream/signing-key.asc @@ -0,0 +1,180 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1 + +mQINBFAI/RwBEAC882z9DZ0OqvdoswfZD6sWlHH43iTc2QUibyHEhz/Jov8UQLPK +qUncNd9QMcQ3zp2NnU9tS4j5IY/QPcBMR96ZNdl9PWpV/Ubs6yZ9PK2/DBt3Noos +FZUN2KrHbnbED5zf9sEHyRuBTnDtVRtskQlaFreX5NSZ1ndqJrC1Uqm64Mf+0mC8 +7D1QRlNkH7OQmMK+u6EN8a1IZae7mDzzStgzvbvm1BZ6XDJ6ThNckvGEhgSbPF16 +9zfW6a0mdlOjkmW50VIQg3wjtVHxlIYqFnH4KGp2kYslJR3SIB7ntbNW1wVQm8d2 +vAnnnzXWNFFuIqOj7z6ylIL9lVTPEBen3rgDsha7/YCR5d4Kez4piKKbAMBxeSxZ +yzz90YRtp/zIqjotfQt6Q05mAi9xVfvbi+XKBcGtoU89g5aekFi7bkrpxDB/JCAA +VaLz0Mrpz0/33Pffhnf5a9JUvk6UhNmYBEknLn7fuO3WF0Q6Q58QvMYvHxpxAr3X +nywyYFic8o71lxWB8D/Y2bhwHE3098BJhI80DLznx7cmuInORg0AnV5AArkdCBNa +p+bh0rVbQXxOzKT3ETPkK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auo4PVHEbZ3HEGUcpJ8NtjiBPf +lThKtJ9XqtY/pMVPQlLGqCJtt6BclQ3SNJQvgeJu0tcdLb++lX/BNx5VoYH+ +=+XWS +-----END PGP PUBLIC KEY BLOCK----- diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..c4a6699 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=pgpsigurlmangle=s/$/.asc/ \ +http://releases.arctica-project.org/source/lightdm-remote-session-remoteconfigure/lightdm-remote-session-remoteconfigure-(.+)\.tar\.gz diff --git a/firefox-remoteconfigure.desktop.in b/firefox-remoteconfigure.desktop.in new file mode 100644 index 0000000..a20f56f --- /dev/null +++ b/firefox-remoteconfigure.desktop.in @@ -0,0 +1,15 @@ +[Desktop Entry] +Version=1.0 +Name=Configure Remote Logon +Comment=Configure Remote Logon using the web +Keywords=Internet;WWW;Browser;Web;Explorer +Exec=@pkgdatadir@/firefox-remoteconfigure.sh +TryExec=@pkgdatadir@/firefox-remoteconfigure.sh +Terminal=false +X-MultipleArgs=false +Type=Application +Icon=firefox +Categories=GNOME;GTK;Network;WebBrowser; +StartupWMClass=Firefox +StartupNotify=true +X-GNOME-Autostart-Phase=Application diff --git a/firefox-remoteconfigure.sh b/firefox-remoteconfigure.sh new file mode 100755 index 0000000..82fd131 --- /dev/null +++ b/firefox-remoteconfigure.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +REMOTECONFIGURE_URL=https://services.arctica-project.org/remoteconfigure + +if [ -f "/etc/default/lightdm-remote-session-remoteconfigure" ]; then + . /etc/default/lightdm-remote-session-remoteconfigure +fi + +firefox -no-remote "${REMOTECONFIGURE_URL}" diff --git a/firefox-uccsconfigure.desktop.in b/firefox-uccsconfigure.desktop.in deleted file mode 100644 index 7223b01..0000000 --- a/firefox-uccsconfigure.desktop.in +++ /dev/null @@ -1,15 +0,0 @@ -[Desktop Entry] -Version=1.0 -Name=Configure UCCS -Comment=Configure UCCS using the web -Keywords=Internet;WWW;Browser;Web;Explorer -Exec=@pkgdatadir@/firefox-uccsconfigure.sh -TryExec=@pkgdatadir@/firefox-uccsconfigure.sh -Terminal=false -X-MultipleArgs=false -Type=Application -Icon=firefox -Categories=GNOME;GTK;Network;WebBrowser; -StartupWMClass=Firefox -StartupNotify=true -X-GNOME-Autostart-Phase=Application diff --git a/firefox-uccsconfigure.sh b/firefox-uccsconfigure.sh deleted file mode 100755 index a632cb1..0000000 --- a/firefox-uccsconfigure.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -firefox -no-remote https://uccs.landscape.canonical.com/ -gnome-session-quit --logout --no-prompt diff --git a/lightdm-remote-remoteconfigure b/lightdm-remote-remoteconfigure new file mode 100644 index 0000000..08f5b0b --- /dev/null +++ b/lightdm-remote-remoteconfigure @@ -0,0 +1,2 @@ +#%PAM-1.0 +@include lightdm-autologin diff --git a/lightdm-remote-session-remoteconfigure.default b/lightdm-remote-session-remoteconfigure.default new file mode 100644 index 0000000..d1fdcd4 --- /dev/null +++ b/lightdm-remote-session-remoteconfigure.default @@ -0,0 +1,3 @@ +# URL for the Remote Logon Configuration tool for this site / host +# Adapt to your needs and make sure, Firefox can handle the URL. +#REMOTECONFIGURE_URL=https://service.arctica-project.org/remoteconfigure \ No newline at end of file diff --git a/lightdm-remote-session-remoteconfigure.in b/lightdm-remote-session-remoteconfigure.in new file mode 100644 index 0000000..507d5ca --- /dev/null +++ b/lightdm-remote-session-remoteconfigure.in @@ -0,0 +1,71 @@ +# vim:syntax=apparmor +# Profile for restricting lightdm remote session for UCCS Configuration +# Based on the Guest Account Apparmor script from: +# Author: Martin Pitt + +#include + +@pkglibexecdir@/uccsconfigure-session-wrapper { + #include + #include + #include + /etc/compizconfig/config rw, # bug in compiz https://launchpad.net/bugs/697678 + + / r, + /bin/ rmix, + /bin/fusermount Px, + /bin/** rmix, + /cdrom/ rmix, + /cdrom/** rmix, + /dev/ r, + /dev/** rmw, # audio devices etc. + owner /dev/shm/** rmw, + /etc/ r, + /etc/** rmk, + /etc/gdm/Xsession ix, + /lib/ r, + /lib/** rmixk, + /lib32/ r, + /lib32/** rmixk, + /lib64/ r, + /lib64/** rmixk, + owner /media/ r, + owner /media/** rmwlixk, # we want access to USB sticks and the like + /opt/ r, + /opt/** rmixk, + @{PROC}/ r, + @{PROC}/* rm, + @{PROC}/asound rm, + @{PROC}/asound/** rm, + @{PROC}/ati rm, + @{PROC}/ati/** rm, + owner @{PROC}/** rm, + # needed for gnome-keyring-daemon + @{PROC}/*/status r, + /sbin/ r, + /sbin/** rmixk, + /sys/ r, + /sys/** rm, + /tmp/ rw, + owner /tmp/** rwlkmix, + /usr/ r, + /usr/** rmixk, + /var/ r, + /var/** rmixk, + /var/guest-data/** rw, # allow to store files permanently + /var/tmp/ rw, + owner /var/tmp/** rwlkm, + /{,var/}run/ r, + # necessary for writing to sockets, etc. + /{,var/}run/** rmkix, + /{,var/}run/shm/** wl, + + capability ipc_lock, + + # silence warnings for stuff that we really don't want to grant + deny capability dac_override, + deny capability dac_read_search, + #deny /etc/** w, # re-enable once LP#697678 is fixed + deny /usr/** w, + deny /var/crash/ w, +} diff --git a/lightdm-remote-session-uccsconfigure.in b/lightdm-remote-session-uccsconfigure.in deleted file mode 100644 index 507d5ca..0000000 --- a/lightdm-remote-session-uccsconfigure.in +++ /dev/null @@ -1,71 +0,0 @@ -# vim:syntax=apparmor -# Profile for restricting lightdm remote session for UCCS Configuration -# Based on the Guest Account Apparmor script from: -# Author: Martin Pitt - -#include - -@pkglibexecdir@/uccsconfigure-session-wrapper { - #include - #include - #include - /etc/compizconfig/config rw, # bug in compiz https://launchpad.net/bugs/697678 - - / r, - /bin/ rmix, - /bin/fusermount Px, - /bin/** rmix, - /cdrom/ rmix, - /cdrom/** rmix, - /dev/ r, - /dev/** rmw, # audio devices etc. - owner /dev/shm/** rmw, - /etc/ r, - /etc/** rmk, - /etc/gdm/Xsession ix, - /lib/ r, - /lib/** rmixk, - /lib32/ r, - /lib32/** rmixk, - /lib64/ r, - /lib64/** rmixk, - owner /media/ r, - owner /media/** rmwlixk, # we want access to USB sticks and the like - /opt/ r, - /opt/** rmixk, - @{PROC}/ r, - @{PROC}/* rm, - @{PROC}/asound rm, - @{PROC}/asound/** rm, - @{PROC}/ati rm, - @{PROC}/ati/** rm, - owner @{PROC}/** rm, - # needed for gnome-keyring-daemon - @{PROC}/*/status r, - /sbin/ r, - /sbin/** rmixk, - /sys/ r, - /sys/** rm, - /tmp/ rw, - owner /tmp/** rwlkmix, - /usr/ r, - /usr/** rmixk, - /var/ r, - /var/** rmixk, - /var/guest-data/** rw, # allow to store files permanently - /var/tmp/ rw, - owner /var/tmp/** rwlkm, - /{,var/}run/ r, - # necessary for writing to sockets, etc. - /{,var/}run/** rmkix, - /{,var/}run/shm/** wl, - - capability ipc_lock, - - # silence warnings for stuff that we really don't want to grant - deny capability dac_override, - deny capability dac_read_search, - #deny /etc/** w, # re-enable once LP#697678 is fixed - deny /usr/** w, - deny /var/crash/ w, -} diff --git a/lightdm-remote-uccsconfigure b/lightdm-remote-uccsconfigure deleted file mode 100644 index 08f5b0b..0000000 --- a/lightdm-remote-uccsconfigure +++ /dev/null @@ -1,2 +0,0 @@ -#%PAM-1.0 -@include lightdm-autologin diff --git a/remoteconfigure-session-wrapper.c b/remoteconfigure-session-wrapper.c new file mode 100644 index 0000000..852d7f2 --- /dev/null +++ b/remoteconfigure-session-wrapper.c @@ -0,0 +1,32 @@ +/* + * Copyright © 2012 Canonical Ltd. + * + * This program is free software: you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 3, as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranties of + * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + * + * Author: Ted Gould + */ + +#include +#include + +int +main (int argc, char * argv[]) +{ + char * args[2]; + args[0] = PKGDATADIR "/remoteconfigure-session"; + args[1] = NULL; + + execvp(args[0], args); + + return 0; +} diff --git a/remoteconfigure-session.in b/remoteconfigure-session.in new file mode 100644 index 0000000..b74bf9b --- /dev/null +++ b/remoteconfigure-session.in @@ -0,0 +1,23 @@ +#!/bin/bash +# Copyright © 2012 Canonical Ltd. +# +# This program is free software: you can redistribute it and/or modify it +# under the terms of the GNU General Public License version 3, as +# published by the Free Software Foundation. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranties of +# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program. If not, see . +# +# Author: Ted Gould + +# Set up a Firefox autostart +mkdir -p ~/.config/autostart/ +cp @pkgdatadir@/firefox-remoteconfigure.desktop ~/.config/autostart/ + +# Final thing is to run a minimal desktop session +exec openbox diff --git a/remoteconfigure.desktop.in b/remoteconfigure.desktop.in new file mode 100644 index 0000000..482c2fc --- /dev/null +++ b/remoteconfigure.desktop.in @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Remote Logon Configure +Comment=Setup a Remote Logon Account +Exec=@pkglibexecdir@/remoteconfigure-session-wrapper +TryExec=@pkglibexecdir@/remoteconfigure-session-wrapper +Icon= +Type=Application +X-LightDM-PAM-Service=lightdm-remote-remoteconfigure diff --git a/uccsconfigure-session-wrapper.c b/uccsconfigure-session-wrapper.c deleted file mode 100644 index dbe8023..0000000 --- a/uccsconfigure-session-wrapper.c +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright © 2012 Canonical Ltd. - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 3, as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranties of - * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR - * PURPOSE. See the GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see . - * - * Author: Ted Gould - */ - -#include -#include - -int -main (int argc, char * argv[]) -{ - char * args[2]; - args[0] = PKGDATADIR "/uccsconfigure-session"; - args[1] = NULL; - - execvp(args[0], args); - - return 0; -} diff --git a/uccsconfigure-session.in b/uccsconfigure-session.in deleted file mode 100644 index f8a792d..0000000 --- a/uccsconfigure-session.in +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash -# Copyright © 2012 Canonical Ltd. -# -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU General Public License version 3, as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranties of -# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR -# PURPOSE. See the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program. If not, see . -# -# Author: Ted Gould - -# Set up a Firefox autostart -mkdir -p ~/.config/autostart/ -cp @pkgdatadir@/firefox-uccsconfigure.desktop ~/.config/autostart/ - -# Set up the Compiz profile -export COMPIZ_CONFIG_PROFILE="ubuntu" - -# Unity Configurations -gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ launcher-hide-mode 1 -gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/ automaximize-value 1 - -# Final thing is to run the standard Unity session -exec gnome-session --session=ubuntu diff --git a/uccsconfigure.desktop.in b/uccsconfigure.desktop.in deleted file mode 100644 index 01551c4..0000000 --- a/uccsconfigure.desktop.in +++ /dev/null @@ -1,8 +0,0 @@ -[Desktop Entry] -Name=UCCS Configure -Comment=Setup a UCCS Account -Exec=@pkglibexecdir@/uccsconfigure-session-wrapper -TryExec=@pkglibexecdir@/uccsconfigure-session-wrapper -Icon= -Type=Application -X-LightDM-PAM-Service=lightdm-remote-uccsconfigure -- cgit v1.2.3