Given that `gpio' doesn't take the kind of precations necessary to
avoid offering vulnerabilities, this probably enables all programs on
the pi to become root. However (as requested by gpio upstream) we do
this to avoid howls of protest from users whose cgi programs may no
longer work, etc.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
build; provide the old style build as `./build debian-template'
* Have `wiringpi' be a metapackage, and use `wiringpi-tools' as
the name of the command line tool package.
+ * Install `gpio' setuid root, and world-executable. Given that `gpio'
+ doesn't take the kind of precations necessary to avoid offering
+ vulnerabilities, this probably enables all programs on the pi to
+ become root. However, we do this to avoid howls of protest from users
+ whose cgi programs may no longer work, etc.
--
debian/libwiringpi-dev/usr/lib/$$l.so; \
done
+override_dh_fixperms:
+ dh_fixperms
+ set -e; b=debian/wiringpi-tools/usr/bin/gpio; \
+ chown root.root $$b; \
+ chmod 4755 $$b
+
%:
dh $@