From: David-John Willis Date: Sat, 13 Feb 2010 21:59:02 +0000 (+0000) Subject: pandora-sudoers: Add initial OpenPandora sudo rules. X-Git-Tag: Release-2010-05/1~118 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0652f53806a15befa6a0dfa887f1e8c03b4b8ca8;p=openpandora.oe.git pandora-sudoers: Add initial OpenPandora sudo rules. --- diff --git a/recipes/pandora-system/pandora-sudoers.bb b/recipes/pandora-system/pandora-sudoers.bb new file mode 100644 index 0000000..4c3bbb5 --- /dev/null +++ b/recipes/pandora-system/pandora-sudoers.bb @@ -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 index 0000000..9b998f9 --- /dev/null +++ b/recipes/pandora-system/pandora-sudoers/50_openpandora @@ -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 +