diff options
author | Michael Orlitzky <michael@orlitzky.com> | 2017-07-31 10:36:55 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2017-08-23 14:47:20 -0400 |
commit | 9afccfcd5ab350d6bc72622f3d1ccfb9e54652b0 (patch) | |
tree | ef1b4d6ff06fe86f695582249a95e50178a42dd2 /src/rpcb_svc_com.c | |
parent | 1e2ddd4ebd7a9266e6070f275fa35752752fdfd6 (diff) | |
download | rpcbind-9afccfcd5ab350d6bc72622f3d1ccfb9e54652b0.tar.gz |
autotools: install rpcbind to --sbindir
According to its own man page, the rpcbind program "can only be
started by the super-user." On systems where a distinction is made, it
therefore makes sense to install rpcbind to the autotools sbindir
rather than the regular bindir where it is currently installed. This
is accomplished by three small changes:
1. Move rpcbind from bin_PROGRAMS to sbin_PROGRAMS in Makefile.am.
2. Change @_bindir@ to @_sbindir@ in the rpcbind systemd service file.
3. Tell configure.ac that it should substitute the value of $sbindir
into @_sbindir@ instead of $bindir$ into @_bindir@.
The rpcinfo tool remains where it is, in bindir, since unprivileged
users are able to usefully run it. This avoids forcing maintainers to
choose between two bad options: hiding rpcinfo from unprivileged
users, or installing a useless rpcbind for them.
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src/rpcb_svc_com.c')
0 files changed, 0 insertions, 0 deletions