Accepting request 537933 from GNOME:Factory

- Set caps(cap_net_bind_service=+ep) for gvfds-nfs: Many NFS
  servers default to a mode where they do not allow non-system
  ports from connecting. These servers require to use the
  "insecure" export option in /etc/exports in order to allow libnfs
  clients to be able to connect. Allow the usage of privileged
  ports for the gvfsd-nfs executable to not require the "insecure"
  option on the server (bsc#1065864).

OBS-URL: https://build.opensuse.org/request/show/537933
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gvfs?expand=0&rev=139
This commit is contained in:
Dominique Leuenberger 2017-11-04 09:22:30 +00:00 committed by Git OBS Bridge
commit da4435a7fe
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Tue Oct 31 14:31:25 UTC 2017 - tbechtold@suse.com
- Set caps(cap_net_bind_service=+ep) for gvfds-nfs: Many NFS
servers default to a mode where they do not allow non-system
ports from connecting. These servers require to use the
"insecure" export option in /etc/exports in order to allow libnfs
clients to be able to connect. Allow the usage of privileged
ports for the gvfsd-nfs executable to not require the "insecure"
option on the server (bsc#1065864).
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 2 18:26:16 UTC 2017 - zaitor@opensuse.org Mon Oct 2 18:26:16 UTC 2017 - zaitor@opensuse.org

View File

@ -322,7 +322,8 @@ find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
%{_libexecdir}/%{name}/gvfsd-network %{_libexecdir}/%{name}/gvfsd-network
%{_datadir}/%{name}/mounts/network.mount %{_datadir}/%{name}/mounts/network.mount
%if 0%{?is_opensuse} %if 0%{?is_opensuse}
%{_libexecdir}/%{name}/gvfsd-nfs # allow priv ports for mounting nfs . Otherwise the nfs-service requires insecure
%caps(cap_net_bind_service=+ep) %{_libexecdir}/%{name}/gvfsd-nfs
%{_datadir}/%{name}/mounts/nfs.mount %{_datadir}/%{name}/mounts/nfs.mount
%endif %endif
%if !0%{?is_opensuse} %if !0%{?is_opensuse}