pandora-sudoers: Add initial OpenPandora sudo rules.
authorDavid-John Willis <John.Willis@Distant-earth.com>
Sat, 13 Feb 2010 21:59:02 +0000 (21:59 +0000)
committerDavid-John Willis <John.Willis@Distant-earth.com>
Sat, 13 Feb 2010 21:59:02 +0000 (21:59 +0000)
recipes/pandora-system/pandora-sudoers.bb [new file with mode: 0644]
recipes/pandora-system/pandora-sudoers/50_openpandora [new file with mode: 0644]

diff --git a/recipes/pandora-system/pandora-sudoers.bb b/recipes/pandora-system/pandora-sudoers.bb
new file mode 100644 (file)
index 0000000..4c3bbb5
--- /dev/null
@@ -0,0 +1,21 @@
+DESCRIPTION = "Custom sudoers files for the OpenPandora."
+LICENSE = "GPLV2"
+
+COMPATIBLE_MACHINE = "omap3-pandora"
+
+RDEPENDS = "sudo"
+
+PR = "r0"
+
+SRC_URI = " \
+          file://50_openpandora \
+"
+
+do_install() {
+          install -d ${D}${sysconfdir}/sudoers.d/
+          install -m 440 ${WORKDIR}/50_openpandora ${D}${sysconfdir}/sudoers.d/50_openpandora
+}
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
+
+FILES_${PN} += "${prefix} ${datadir}"
diff --git a/recipes/pandora-system/pandora-sudoers/50_openpandora b/recipes/pandora-system/pandora-sudoers/50_openpandora
new file mode 100644 (file)
index 0000000..9b998f9
--- /dev/null
@@ -0,0 +1,16 @@
+%wheel ALL=(ALL) NOPASSWD: /sbin/halt
+%wheel ALL=(ALL) NOPASSWD: /sbin/ifconfig
+%wheel ALL=(ALL) NOPASSWD: /sbin/iwconfig
+%wheel ALL=(ALL) NOPASSWD: /sbin/iwlist
+%wheel ALL=(ALL) NOPASSWD: /sbin/lsusb
+%wheel ALL=(ALL) NOPASSWD: /sbin/poweroff
+%wheel ALL=(ALL) NOPASSWD: /sbin/reboot
+%wheel ALL=(ALL) NOPASSWD: /sbin/shutdown
+%wheel ALL=(ALL) NOPASSWD: /usr/bin/chvt
+%wheel ALL=(ALL) NOPASSWD: /usr/bin/gnome-cups-manager
+%wheel ALL=(ALL) NOPASSWD: /usr/bin/showkey
+%wheel ALL=(ALL) NOPASSWD: /usr/bin/traceroute
+%wheel ALL=(ALL) NOPASSWD: /usr/bin/uniqueid.sh
+%wheel ALL=(ALL) NOPASSWD: /usr/sbin/bluetoothd
+%wheel ALL=(ALL) NOPASSWD: /usr/sbin/hciconfig
+