[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

udevil and setuid

From: Gabriel Hondet
Subject: udevil and setuid
Date: Mon, 24 Dec 2018 12:58:01 +0100
User-agent: mu4e 1.0; emacs 26.1


I'm currently trying to package 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
    (name "udevil")
    (home-page "";)
    (version "0.4.4")
       (method git-fetch)
       (uri (git-reference
             (url "";)
             (commit version)))
       (file-name (git-file-name name version))
       (modules '((guix build utils)))
           (substitute* "src/" (("-o root -g root") ""))
           (substitute* "src/" (("-o root -g root") ""))))))
    (build-system gnu-build-system)
     `(("glib" ,glib)
       ("eudev" ,eudev)))
     `(("pkg-config" ,pkg-config)
       ("intltool" ,intltool)))
     `(#:configure-flags (list
                          (string-append "--sysconfdir="
                                         (assoc-ref %outputs "out") "/etc"))
       (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)
    (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+)))

Thanks for your help

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]