Remove security hack 99/25099/1
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Tue, 29 Jul 2014 13:05:03 +0000 (15:05 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Tue, 29 Jul 2014 13:05:03 +0000 (15:05 +0200)
When porting weston-common to yocto, SMACK rules were replaced with
more permissive ones in order to work around some permission issues.
Thoses hacks are not necessary anymore.

Change-Id: I06f634a9281102451c0c474d600de670ac7995f1
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
recipes-tizen/weston-common/weston-common-extraconf.inc

index d4d8b2f..d9152fe 100644 (file)
@@ -19,19 +19,7 @@ USERADD_PARAM_${PN} += " -d /home/guest -m -u 9999   -g users   -G users,display
 USERADD_PARAM_${PN} += " -d /home/app   -m -u 5000   -g users   -G users,display -r -s /bin/sh app "
 
 do_install_append() {
-
-    # user 'display' must own /dev/tty7 for weston to start correctly
-    cat >${D}${sysconfdir}/udev/rules.d/99-tty.rules <<'EOF'
-    SUBSYSTEM=="tty", KERNEL=="tty7", OWNER="display", SMACK="*"
-EOF
-
-    # user 'display' must also be able to access /dev/input/event*
-    cat >${D}${sysconfdir}/udev/rules.d/99-input.rules <<'EOF'
-    SUBSYSTEM=="input", KERNEL=="event*", MODE="0660", GROUP="input", SMACK="*"
-EOF
-
     install -m 755 uid.sh ${D}/etc/profile.d
-
     mkdir -p ${D}/lib/systemd/user/default.target.wants
     ln -sf ../weston-user.service ${D}/lib/systemd/user/default.target.wants/weston-user.service
 }
@@ -51,5 +39,4 @@ weston-common_files += "/home/*"
 
 pkg_preinst_${PN}() {
     #!/bin/sh -e
-
-}
\ No newline at end of file
+}