Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405759 - net-print/hplip-3.11.10: setting by hp-setup fails on installing printer plugin when /tmp is mounted with noexec (Permission denied)
Summary: net-print/hplip-3.11.10: setting by hp-setup fails on installing printer plug...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-25 13:17 UTC by cyberbat
Modified: 2012-02-27 20:37 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cyberbat 2012-02-25 13:17:43 UTC
I have HP LaserJet 1022. When I run hp-setup it says that it would be better for me to install binary plugin for my printer. When I agree it download it but fails to run.

When I download and run ./hplip-3.11.10-plugin.run manualy I got:
Verifying archive integrity... All good.
Uncompressing HPLIP 3.11.10 Plugin Self Extracting Archive.........................................
./hplip-3.11.10-plugin.run: line 395: ./hplip-plugin-install: Permission denied

Seems that it extracts files somewhere to /tmp/ (mounted with noexec) and fails to run.

After mount -o remount,exec /tmp everything is ok and my printer begin to work.
I can remount /tmp noexec after installing since it need not runing anything from /tmp.

emerge --info
Portage 2.1.10.44 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.13-r4, 3.1.10-gentoo-r1 x86_64)
=================================================================
System uname: Linux-3.1.10-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9505_@_2.83GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 25 Feb 2012 09:15:01 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo x-unklay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.1 Q3AEULA PUEL LOKI-EULA skype-eula"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="ftp://gentoo.bloodhost.ru/ ftp://mirror.yandex.ru/gentoo-distfiles/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/unklay"
SYNC="rsync://gentoo.bloodhost.ru/gentoo-portage"
USE="X a52 aac acl acpi akonadi alsa amd64 amr audiofile bash-completion branding bzip2 cairo cdda cddb cdio cdparanoia cdr cli consolekit cracklib crypt css cups curl cxx dbus declarative device-mapper djvu dri dts dv dvd dvdr emboss encode exif ffmpeg firefox flac fontconfig fortran ftp gd gdu geoip gif gimp gmp gnutls gphoto2 gpm graphviz gsm gstreamer gtk handbook iconv icu id3tag idn imagemagick imap imlib ios iphone ipod ipv6 jabber jbig jingle jpeg jpeg2k kde kipi kontact ladspa lame lcms libnotify libsamplerate libwww lm_sensors lzma lzo mac mad matroska mikmod mjpeg mmx mng modplug modules mp3 mp4 mpeg mplayer mudflap multilib musepack musicbrainz ncurses nls nptl nptlonly ntfs ogg openal openexr opengl pam pango pcre pdf phonon plasma png policykit ppds pppd qt3support qt4 quicktime rar raw readline rss rtmp sasl scanner sdl semantic-desktop session sharedext smp sndfile socks5 speex spell sqlite sse sse2 sse3 sse4 ssl ssse3 startup-notification svg symlink sysfs syslog taglib theora threads thumbnail tiff truetype udev unicode usb video vim-syntax vlc vorbis wavpack webkit wmf x264 xcb xcomposite xface xml xmp xorg xpm xscreensaver xulrunner xv xvid zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Daniel Pielmeier gentoo-dev 2012-02-27 17:18:15 UTC
Well what should I do here? I think unpacking to /tmp is allowed. You can download the plugin, extract it where you want and install it manually however. The plugins are available under:
http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/
Comment 2 cyberbat 2012-02-27 17:24:02 UTC
(In reply to comment #1)
> Well what should I do here? I think unpacking to /tmp is allowed. You can
> download the plugin, extract it where you want and install it manually however.
> The plugins are available under:
> http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/

I have alreay remount with exec, install and remounted back. But as for me it will be much user friendly if we check whether /tmp is noexec on emerge phase and warn user about it.
Comment 3 Daniel Pielmeier gentoo-dev 2012-02-27 18:24:40 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > Well what should I do here? I think unpacking to /tmp is allowed. You can
> > download the plugin, extract it where you want and install it manually however.
> > The plugins are available under:
> > http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/
> 
> I have alreay remount with exec, install and remounted back. But as for me it
> will be much user friendly if we check whether /tmp is noexec on emerge phase
> and warn user about it.

The binary plugins are not really supported plus I have no chance to test them. You can open a bug at https://launchpad.net/hplip to get such a check included upstream.
Comment 4 cyberbat 2012-02-27 18:37:54 UTC
(In reply to comment #3)
> You can open a bug at https://launchpad.net/hplip to get such a check included
> upstream.

Done:
https://bugs.launchpad.net/hplip/+bug/942146
Comment 5 Daniel Pielmeier gentoo-dev 2012-02-27 20:37:30 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > You can open a bug at https://launchpad.net/hplip to get such a check included
> > upstream.
> 
> Done:
> https://bugs.launchpad.net/hplip/+bug/942146

Thanks, I will follow the progress upstream.