From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gabriel Hondet Subject: udevil and setuid Date: Mon, 24 Dec 2018 12:58:01 +0100 Message-ID: <87ftunnnli.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gbOs6-0005YN-CB for help-guix@gnu.org; Mon, 24 Dec 2018 06:58:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gbOs2-0004Xk-7X for help-guix@gnu.org; Mon, 24 Dec 2018 06:58:10 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:39489) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gbOs2-0004XA-14 for help-guix@gnu.org; Mon, 24 Dec 2018 06:58:06 -0500 Received: by mail-wr1-x42c.google.com with SMTP id t27so11368024wra.6 for ; Mon, 24 Dec 2018 03:58:05 -0800 (PST) Received: from glht-x240.gmail.com ([80.12.58.0]) by smtp.gmail.com with ESMTPSA id w80sm23508511wme.38.2018.12.24.03.58.02 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Dec 2018 03:58:03 -0800 (PST) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org --=-=-= Content-Type: text/plain Hello, I'm currently trying to package udevil (https://ignorantguru.github.io/udevil/) for guix. The executable needs to have the suid. Therefore I added a phase in the standard phases which adds this suid (after install). However, after building, the resulting package in the store (at /gnu/store/whatever-udevil-0.4.4/bin/udevil) does not have the suid properly set. Here is the full package specification: #+begin_src scheme (define-public udevil (package (name "udevil") (home-page "https://ignorantguru.github.io/udevil/") (version "0.4.4") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/ignorantguru/udevil") (commit version))) (file-name (git-file-name name version)) (sha256 (base32 "0x9mjr9abvbxzfa9mrip5264iz1qxvsl01k3ybz95q4a7xl4jcb3")) (modules '((guix build utils))) (snippet '(begin (substitute* "src/Makefile.am" (("-o root -g root") "")) (substitute* "src/Makefile.in" (("-o root -g root") "")))))) (build-system gnu-build-system) (inputs `(("glib" ,glib) ("eudev" ,eudev))) (native-inputs `(("pkg-config" ,pkg-config) ("intltool" ,intltool))) (arguments `(#:configure-flags (list (string-append "--sysconfdir=" (assoc-ref %outputs "out") "/etc")) #:phases (modify-phases %standard-phases (add-after 'install 'set-suid (lambda _ (let* ((out (assoc-ref %outputs "out")) (outbin (string-append out "/bin/udevil"))) (chmod outbin #o4555) #t)))))) (synopsis "Mount without password") (description "udevil is a command line Linux program which mounts and unmounts removable devices without a password, shows device info, and monitors device changes. It can also mount ISO files, nfs://, smb://, ftp://, ssh:// and WebDAV URLs, and tmpfs/ramfs filesystems. @itemize @bullet @item Intended as a hassle-free replacement for udisks @item Highly configurable & security conscious @item Requires no daemon running @item To use it, just prefix a normal mount command with @code{udevil} @item Can replace udisks in the SpaceFM file manager and the devmon @end itemize automounting daemon (devmon is included with udevil)") (license license:gpl3+))) #+end_src Thanks for your help --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE5ercJXBcjd3P1FcAMbyBBfZZ1CUFAlwgyckACgkQMbyBBfZZ 1CUnfxAAnH9ns16aNrX6L9AEA8VXQX/8tQwhgyccymfoxgNDrPsnLWFp4jWBz/Nv SmOWo2NoYwF3LYKIoz8M/CY/x+PaNdwWKNYcR5nV3IBW6MKbn5HTsXYIu9U6HDCl KAapswKqHUIOh3/8UTq6KNK+QiVKhcFbnhvBxqAG9FEA/aH43bq5q+OSaTygzYg8 PIJIVV2tGI0NgTywA56n/vD8KMh0Di+tQ8Rw60g8yqsSzoxHDfl4Okq34lQAUNre Fcf2d7AFCs+k4TqklNqueFRdzJe4MoLWag4SRGgCQkrpc+Kd1jjue5guSocUfn9M G4FMJS4zd4PT5tCfQ31ylVBmBLmuOM7/ygtOr1XrO1DLuDTHs9pRCQ+jLiaNFMTX kwuof2wqv4ctvFFVqlt3cBKWCnSQtt3KmVfv0Lbt9dQ1BB7AS21db2pB8oiVv6BL ZmBUPtk2scJ9EVVVBRkduT6gFa2cmyt9Flkjk3e3Zazn6c/f8wiptG5DIxlA6EaF +/ki/83e3IjyDXZA5BewxJyzy4brra25wWsonaiXRKgtYItztenJ51QeG5I/iEj6 5r4j5JG9tzmX1wPmRahWQ1D005Awub5BR5+QRav9jzK5TbMl5lsfLM/d7A8O3UeE lN19Pr9wd4OFyPsFYAvbCnONObgTKEPo5NZM4sxTQ2J+IbcMuik= =QA9c -----END PGP SIGNATURE----- --=-=-=--