Sync from SUSE:SLFO:Main autofs revision 82aee6ddc002971b5974a7b4b1b3ec74

This commit is contained in:
Adrian Schröter 2025-02-17 08:16:01 +01:00
commit c4799af63e
21 changed files with 6804 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

16
NetworkManager-autofs Normal file
View File

@ -0,0 +1,16 @@
#! /bin/sh
#
# autofs dispatcher script for NetworkManager
#
# Matthias Koenig <mkoenig@suse.de>
#
case "$2" in
up)
if test -x /usr/bin/systemctl && systemctl -q is-enabled autofs.service; then
systemctl reload autofs.service
fi
;;
*)
exit 0
;;
esac

48
README.SUSE Normal file
View File

@ -0,0 +1,48 @@
autofs5 is a major update with lots of code changes and new features.
Most of the changes enhance the functionality to be more compliant
with current industry standards.
Here is a list of the most important changes:
Differences v4 vs. v5
---------------------
- Master map is now read and parsed by the `automount' daemon
- The master map default is "auto.master" and nsswitch is used to
locate it. The line "+auto.master" has been added to the default
installed "/etc/auto.master" to ensure that those using NIS will
still find their master map. This is in line with other industry
automount implementations.
- The `automount' daemon is now a multi-threaded application
- `autofs' filesystem mounts only appear in /proc/mounts and not
/etc/mtab.
- `autofs' version 5.0.0 will refuse to run if it cannot find an
autofs4 kernel module that supports protocol version 5.00 or above.
- mount options present in the master map are now overridden by mount
options in map entries instead of being accumulated. This behaviour
is in line with other industry automount implementations.
New features in v5
------------------
- improved direct mount map support
- `+' map inclusion
- added nsswitch map source support
- rewrote multi-mount map code
- added LDAP encryption and authentication support
- improved shutdown and restart
- a "hosts" map module has been added
Update hints
============
Since autofs now uses nsswitch to locate the master map, the
sysconfig variable NISMASTERMAP is obsolete.
Also the UNDERSCORETODOT parameter is not support anymore.
Some new sysconfig parameters are available, please take
a look to /etc/sysconfig/autofs.
Note also, that the old Suse config syntax style is not
supported anymore. If you had a configuration like
/mnt yp auto.home [options]
you'll have to change this to
/mnt yp:auto.home [options]

51
README.SUSE.ldap Normal file
View File

@ -0,0 +1,51 @@
Autofs with ldap
----------------
You can configure autofs via LDAP using the nis.schema or rfc2307bis.schema.
You can find this schema at /etc/openldap/schema/nis.schema and
/etc/openldap/schema/rfc2307bis.schema resp.
1. Change the "automount:" entry in /etc/nsswitch.conf to
automount: files ldap
2. Configure your /etc/openldap/ldap.conf
include /etc/openldap/schema/rfc2307bis.schema
or
include /etc/openldap/schema/nis.schema
3. Create the neccessary entry in LDAP
Here is an example ldif to mount the whole /home per autofs:
--------------------- begin ------------------------------------------------
dn: ou=AUTOFS,dc=example,dc=org
objectClass: organizationalUnit
ou: AUTOFS
dn: nisMapName=auto.master,ou=AUTOFS,dc=example,dc=org
objectClass: nisMap
nisMapName: auto.master
dn: cn=/mounts,nisMapName=auto.master,ou=AUTOFS,dc=example,dc=org
objectClass: nisObject
nisMapName: auto.master
cn: /mounts
nisMapEntry: ldap ldapserver.example.org:nisMapName=auto.mounts,ou=AUTOFS,dc=example,dc=org
dn: nisMapName=auto.mounts,ou=AUTOFS,dc=example,dc=org
objectClass: nisMap
nisMapName: auto.mounts
dn: cn=home,nisMapName=auto.mounts,ou=AUTOFS,dc=example,dc=org
objectClass: nisObject
nisMapName: auto.mounts
cn: home
nisMapEntry: -fstype=nfs,hard,intr,nodev,nosuid nfsserver.example.org:/home
--------------------- end --------------------------------------------------

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,17 @@
---
Makefile.rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: autofs-5.1.8/Makefile.rules
===================================================================
--- autofs-5.1.8.orig/Makefile.rules
+++ autofs-5.1.8/Makefile.rules
@@ -32,7 +32,7 @@ CFLAGS ?= -g -Wall -DDEBUG
LDFLAGS ?= -g
else
CFLAGS ?= -O2 -Wall
-LDFLAGS ?= -s
+LDFLAGS ?= -g
endif
ifdef DONTSTRIP

View File

@ -0,0 +1,31 @@
---
samples/auto.master | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- a/samples/auto.master
+++ b/samples/auto.master
@@ -4,13 +4,13 @@
# mount-point [map-type[,format]:]map [options]
# For details of the format look at auto.master(5).
#
-/misc /etc/auto.misc
+#/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
-/net -hosts
+#/net -hosts
#
# Include /etc/auto.master.d/*.autofs
# To add an extra map using this mechanism you will need to add
@@ -19,7 +19,7 @@
# and a separate mount map (e.g. /etc/auto.extra or an auto.extra NIS map)
# that is referred to by the extra.autofs file.
#
-+dir:/etc/auto.master.d
+#+dir:/etc/auto.master.d
#
# If you have fedfs set up and the related binaries, either
# built as part of autofs or installed from another package,

View File

@ -0,0 +1,60 @@
From b7ff971bb8aa3fc609bb531ddc4c2ce56226383f Mon Sep 17 00:00:00 2001
From: Florian Weimer <fweimer@redhat.com>
Date: Mon, 18 Dec 2023 13:48:18 +0100
Subject: [PATCH] autofs-5.1.9 - Fix incompatible function pointer types in
cyrus-sasl module
Add casts to SASL callbacks to avoid incompatible-pointer-types
errors. Avoids a build failure with stricter compilers.
Signed-off-by: Florian Weimer <fweimer@redhat.com>
Signed-off-by: Ian Kent <raven@themaw.net>
Reviewed-by: David Disseldorp <ddiss@suse.de>
---
CHANGELOG | 2 ++
modules/cyrus-sasl.c | 14 +++++++-------
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index 3e47daa..fd9d861 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,4 +1,6 @@
+- Fix incompatible function pointer types in cyrus-sasl module.
+
02/11/2023 autofs-5.1.9
- fix kernel mount status notification.
- fix fedfs build flags.
diff --git a/modules/cyrus-sasl.c b/modules/cyrus-sasl.c
index e742eaf..78b7794 100644
--- a/modules/cyrus-sasl.c
+++ b/modules/cyrus-sasl.c
@@ -109,17 +109,17 @@ static int getpass_func(sasl_conn_t *, void *, int, sasl_secret_t **);
static int getuser_func(void *, int, const char **, unsigned *);
static sasl_callback_t callbacks[] = {
- { SASL_CB_USER, &getuser_func, NULL },
- { SASL_CB_AUTHNAME, &getuser_func, NULL },
- { SASL_CB_PASS, &getpass_func, NULL },
+ { SASL_CB_USER, (int(*)(void)) &getuser_func, NULL },
+ { SASL_CB_AUTHNAME, (int(*)(void)) &getuser_func, NULL },
+ { SASL_CB_PASS, (int(*)(void)) &getpass_func, NULL },
{ SASL_CB_LIST_END, NULL, NULL },
};
static sasl_callback_t debug_callbacks[] = {
- { SASL_CB_LOG, &sasl_log_func, NULL },
- { SASL_CB_USER, &getuser_func, NULL },
- { SASL_CB_AUTHNAME, &getuser_func, NULL },
- { SASL_CB_PASS, &getpass_func, NULL },
+ { SASL_CB_LOG, (int(*)(void)) &sasl_log_func, NULL },
+ { SASL_CB_USER, (int(*)(void)) &getuser_func, NULL },
+ { SASL_CB_AUTHNAME, (int(*)(void)) &getuser_func, NULL },
+ { SASL_CB_PASS, (int(*)(void)) &getpass_func, NULL },
{ SASL_CB_LIST_END, NULL, NULL },
};
--
2.35.3

View File

@ -0,0 +1,44 @@
From a76cbadd48237abdce0de9a1e3576b02e6111bf8 Mon Sep 17 00:00:00 2001
From: David Disseldorp <ddiss@suse.de>
Date: Wed, 20 Mar 2024 01:48:55 +0100
Subject: [PATCH] autofs-5.1.9 - fix ldap_parse_page_control() check
The final @cookie parameter should be a struct berval ** type. The
check currently fails when -Werror=incompatible-pointer-types is set:
conftest.c: In function 'main':
conftest.c:54:47: error: passing argument 4 of 'ldap_parse_page_control'
from incompatible pointer type [-Werror=incompatible-pointer-types]
54 | ret = ldap_parse_page_control(ld,clp,ct,c);
| ^
| |
| struct berval *
In file included from /usr/include/lber_types.h:24,
from /usr/include/lber.h:29,
from /usr/include/ldap.h:30,
from conftest.c:45:
/usr/include/ldap.h:2155:25: note: expected 'struct berval **' but
argument is of type 'struct berval *'
2155 | ldap_parse_page_control LDAP_P((
Signed-off-by: David Disseldorp <ddiss@suse.de>
---
aclocal.m4 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/aclocal.m4 b/aclocal.m4
index 1046d72..fa18eb1 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -424,7 +424,7 @@ AC_LINK_IFELSE(
#include <ldap.h> ]],
[[ LDAP *ld;
ber_int_t *ct;
- struct berval *c;
+ struct berval **c;
int ret;
LDAPControl **clp;
ret = ldap_parse_page_control(ld,clp,ct,c); ]])],
--
2.35.3

16
autofs-5.1.9.tar.sign Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEzQpuPLtnaIALBzao52dzgPVP2KkFAmVJtJ8ACgkQ52dzgPVP
2Kn7QA//bLh6hZWgEGw0gjXC1gB7yWrqTN7DxTwn5283lLVDitCFHaOGp1y9+lXZ
VGHsat15OmvxTu79wvwSqwpL5g7jRfyjcF3U/F3yclWTxG148mNaMZxgluJiSpPe
Oqb9dqYTjCRwPJrjqxJESDxIHVqH0ychXVw557XwOM7Axz1Wtwop8tI6nChU7n1+
cFVfrDv0ekeyH1uPGhM8LWkrus9zSh8wsRWcdXlsP7nBSq/trrACmhksk0RCBXaV
eboC1QHAcT3/RFQt4O61yvmCiEUn6d2u6cuzh3GnYfJceSGzB2ikpN6FDjxS5AH1
OA/H4D9dZqT6lgnYspLAhzHOVFKPJZ7lScRSuROQnRHPCG5SEXvRmkDIX+fRGf8y
MFFWKV25VvTFtqqKlNVNeBbbGsxWXDwvaSmXKBFjSLzB/UWRUS6tU/A6iXDkorWp
Kz6CRPuX7H5INQJPDxeqyhzy7N7zRA2ABAklQNSKIuGmIJLvVksAI035ne6ok3L5
xfe7qHqeqtDe8tmiKawb8C3JEAmY5prjTxomJ818QQusX5454N0RDgpRscm1Kx8c
yhSepRA+x8oF/f6gTCqAGAOTiojqj+FsR5YnP56xQxCiFxk15krb9foyL3FMWq3G
8yvhlAuaFF+Vy3xaruZ9lu4aT0GrFJnZVB6cqepFWR4VKITGQjg=
=KGsN
-----END PGP SIGNATURE-----

BIN
autofs-5.1.9.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,15 @@
---
lib/nss_parse.y | 2 ++
1 file changed, 2 insertions(+)
--- a/lib/nss_parse.y
+++ b/lib/nss_parse.y
@@ -168,6 +168,8 @@
int status;
nsswitch = open_fopen_r(NSSWITCH_FILE);
+ if (!nsswitch)
+ nsswitch = open_fopen_r("/usr" NSSWITCH_FILE);
if (!nsswitch) {
logerr("couldn't open %s", NSSWITCH_FILE);
return 1;

View File

@ -0,0 +1,38 @@
References: bsc#1207881 - Obsolete and incorrect manual page details for autofs(8)
Index: autofs-5.1.8/man/autofs.8.in
===================================================================
--- autofs-5.1.8.orig/man/autofs.8.in
+++ autofs-5.1.8/man/autofs.8.in
@@ -2,13 +2,6 @@
.SH NAME
autofs \- Service control for the automounter
.SH SYNOPSIS
-If a SysV init script system is being used:
-.br
-.B @@initdir@@/autofs
-.I start|stop|restart|reload|status
-.P
-or if the systemd init system is being used:
-.br
.B systemctl
.I start|stop|restart|reload|status
.B autofs.service
@@ -37,8 +30,6 @@ by default to find mount points on the s
will mount and start a thread, with the appropriate parameters, to
manage the mount point.
.P
-.B @@initdir@@/autofs reload
-or
.B systemctl autofs.service reload
will check the current auto.master map against the current automount managed
mounts. It will terminate those daemons or threads (depending on
@@ -61,8 +52,6 @@ mounts cannot be updated due to potentia
case the map entry offsets will not be updated until after the map
entry has expired.
.P
-.B @@initdir@@/autofs status
-or
.B systemctl status autofs.service
will display the status of,
.BR automount (8),

View File

@ -0,0 +1,74 @@
From: Jeff Mahoney <jeffm@suse.com>
Subject: autofs: use libldap_r instead of libldap for thread safety
References: bsc#955477
In order for OpenSSL to be threadsafe, CRYPTO_set_locking_callback needs
to be used to set the locking function. That's only done with libldap_r,
not plain libldap.
>From the openldap source:
** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
** can be used to determine if -lldap_r is available at compile
** time. You must define LDAP_THREAD_SAFE if and only if you
** link with -lldap_r.
**
** If you fail to define LDAP_THREAD_SAFE when linking with
** -lldap_r or define LDAP_THREAD_SAFE when linking with -lldap,
** provided header definations and declarations may be incorrect.
The autofs Makefile defines LDAP_THREAD_SAFE and then links with -lldap.
This patch links with -lldap_r instead and fixes observed crashes.
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
---
aclocal.m4 | 8 ++++----
configure.in | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
Index: autofs-5.1.9/aclocal.m4
===================================================================
--- autofs-5.1.9.orig/aclocal.m4
+++ autofs-5.1.9/aclocal.m4
@@ -374,11 +374,11 @@ dnl
dnl Check for function ldap_create_page_control
dnl --------------------------------------------------------------------------
AC_DEFUN([AF_CHECK_FUNC_LDAP_CREATE_PAGE_CONTROL],
-[AC_MSG_CHECKING(for ldap_create_page_control in -lldap)
+[AC_MSG_CHECKING(for ldap_create_page_control in -lldap_r)
# save current libs
af_check_ldap_create_page_control_save_libs="$LIBS"
-LIBS="$LIBS -lldap"
+LIBS="$LIBS -lldap_r"
af_check_ldap_create_page_control_save_cflags="$CFLAGS"
CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
@@ -410,11 +410,11 @@ dnl
dnl Check for function ldap_parse_page_control
dnl --------------------------------------------------------------------------
AC_DEFUN([AF_CHECK_FUNC_LDAP_PARSE_PAGE_CONTROL],
-[AC_MSG_CHECKING(for ldap_parse_page_control in -lldap)
+[AC_MSG_CHECKING(for ldap_parse_page_control in -lldap_r)
# save current libs
af_check_ldap_parse_page_control_save_libs="$LIBS"
-LIBS="$LIBS -lldap"
+LIBS="$LIBS -lldap_r"
af_check_ldap_parse_page_control_save_cflags="$CFLAGS"
CFLAGS="$CFLAGS -Werror=implicit-function-declaration"
Index: autofs-5.1.9/configure.ac
===================================================================
--- autofs-5.1.9.orig/configure.ac
+++ autofs-5.1.9/configure.ac
@@ -299,7 +299,7 @@ AC_ARG_WITH(openldap,
if test -z "$HAVE_LDAP" -o "$HAVE_LDAP" != "0"; then
HAVE_LDAP=0
LDAP_FLAGS="$LDAP_FLAGS -DLDAP_DEPRECATED=1"
- AC_CHECK_LIB(ldap, ldap_initialize, HAVE_LDAP=1 LIBLDAP="$LIBLDAP -lldap -llber -lresolv", ,
+ AC_CHECK_LIB(ldap_r, ldap_initialize, HAVE_LDAP=1 LIBLDAP="$LIBLDAP -lldap_r -llber -lresolv", ,
-llber -lresolv $LIBS)
if test "$HAVE_LDAP" = "1"; then
AC_DEFINE(WITH_LDAP,1,

2800
autofs.changes Normal file

File diff suppressed because it is too large Load Diff

169
autofs.keyring Normal file
View File

@ -0,0 +1,169 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: GPGTools - http://gpgtools.org
mQINBE6c/ycBEADdYbAI5BKjE+yw+dOE+xucCEYiGyRhOI9JiZLUBh+PDz8cDnNx
cCspH44oE7oTH0XPn9f7Zh0TkXWA8G6BZVCNifG7mM9K8Ecp3NheQYCk488ucSV/
dz6DJ8BqX4psd4TI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ustCAQGjUzPsT
BfiUXOxsemwoREvb8TMjG18AEQEAAYkCHwQYAQIACQUCTpz/JwIbDAAKCRDnZ3OA
9U/YqYX+EACbkdY1ciy0pAQzjwmt3o7xKqeB+UFKIJdQEpBG6DIlnECUHS2h+sxz
ckjJ7DeoP1FYbr4gDQcbVtgxXwDT4snaMfOQnR+9YC5HDhNSeyehZ8YI6XNQ6uZM
YYpgUqmtoZbClLdzC124xGC+Tk0ldkbTT9OCsJRkv8THzcEH9jtmiaAuJkrODnmc
LByRVRfKylw7y/zczAp8rFgsI1SA4RwQSDgt5nnGLV62rL/Z5e+y4H38smgAEGc+
8mXL5/Kbo/Yx/Yfpqy9NlvoHfkoehq76OSpOJ4M30/xbbHFRr/cxVsX8qEB0croZ
NEjrKEzWDfFyFoaLKfRlYsg7RBV5q4Yms8+1x3N9rvqPflroKUwWZLWKTkcS1cH/
YdT2OwjwzV+BGiDuuKMsvTt/4boTkzhoWp1b6pWB8hGAhWO6SH2kjYYGbNmldKD9
d11ejxm+cYq+WofjVvYEJP6G572OUwFbYE4wLXubWfnKAkgZDlNcTIluU3e0MJDZ
rVyh8hBencQgDCtShyKsawWmTtuzxA0h2iDx3j4u8uCiqvQvVPJOVeXRQNJqh/7L
fUsOrRW6j5Ko77zCxEwz1cTs4p6VNlQRoXHuMLn0iKFSzo0J2yKNRSKloA8duHh7
9t+Zpzbhh6xvhGqSIe4P+uytLgM8Kde3slGJROQTHMEZWhzLik4peg==
=2l3J
-----END PGP PUBLIC KEY BLOCK-----

24
autofs.schema Normal file
View File

@ -0,0 +1,24 @@
# Depends upon core.schema and cosine.schema
# OID Base is 1.3.6.1.4.1.2312.4
#
# Attribute types are under 1.3.6.1.4.1.2312.4.1
# Object classes are under 1.3.6.1.4.1.2312.4.2
# Syntaxes are under 1.3.6.1.4.1.2312.4.3
# Attribute Type Definitions
attributetype ( 1.3.6.1.1.1.1.25 NAME 'automountInformation'
DESC 'Information used by the autofs automounter'
EQUALITY caseExactIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
objectclass ( 1.3.6.1.1.1.1.13 NAME 'automount' SUP top STRUCTURAL
DESC 'An entry in an automounter map'
MUST ( cn $ automountInformation $ objectclass )
MAY ( description ) )
objectclass ( 1.3.6.1.4.1.2312.4.2.2 NAME 'automountMap' SUP top STRUCTURAL
DESC 'An group of related automount objects'
MUST ( ou ) )

187
autofs.spec Normal file
View File

@ -0,0 +1,187 @@
#
# spec file for package autofs
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
#Compat macro for new _fillupdir macro introduced in Nov 2017
%if ! %{defined _fillupdir}
%define _fillupdir %{_localstatedir}/adm/fillup-templates
%endif
%if 0%{?suse_version} >= 1230
%define with_udisks 1
%else
%define with_udisks 0
%endif
%if 0%{?suse_version} >= 1230
%define with_sssd 1
%else
%define with_sssd 0
%endif
Name: autofs
Version: 5.1.9
Release: 0
Summary: A Kernel-Based Automounter
License: GPL-2.0-or-later
Group: System/Daemons
URL: https://www.kernel.org/pub/linux/daemons/autofs/v5/
Source: https://www.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}.tar.xz
Source1: sysconfig.autofs
Source3: autofs.schema
Source4: README.SUSE.ldap
Source5: README.SUSE
Source7: NetworkManager-autofs
Source8: get-upstream-patches
Source9: https://www.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}.tar.sign
Source10: autofs.keyring
Source42: org.freedesktop.AutoMount.conf
# PATCH-FIX-OPENSUSE autofs-suse-auto_master_default.patch
Patch100: autofs-5.1.1-suse-auto_master_default.patch
# PATCH-FIX-OPENSUSE autofs-debuginfo-fix.patch
Patch101: autofs-5.1.1-debuginfo-fix.patch
# PATCH-EXTEND-OPENSUSE autofs-dbus-udisks-monitor.patch
Patch102: autofs-5.1.1-dbus-udisks-monitor.patch
# PATCH-FIX-OPENSUSE autofs-use-libldap_r-instead-of-libldap-for-thread-safety.patch [bsc#955477]
Patch104: autofs-use-libldap_r-instead-of-libldap-for-thread-safety.patch
# bsc#1175238 - Use /usr/etc/nsswitch.conf if /etc/nsswitch.conf is not available
Patch106: autofs-nsswitch-usr-etc.patch
# bsc#1207881 - Obsolete and incorrect manual page details for autofs(8)
Patch108: autofs-suse-manpage-remove-initdir.patch
# bsc#1221682 - GCC 14: autofs package fails
Patch109: autofs-5.1.9-fix-ldap_parse_page_control-check.patch
Patch110: autofs-5.1.9-Fix-incompatible-function-pointer-types.patch
BuildRequires: autoconf
BuildRequires: bison
BuildRequires: cyrus-sasl-devel
BuildRequires: dbus-1-devel
BuildRequires: e2fsprogs
BuildRequires: flex
BuildRequires: krb5-devel
BuildRequires: libopenssl-devel
BuildRequires: libtirpc-devel
BuildRequires: libxml2-devel
BuildRequires: module-init-tools
BuildRequires: nfs-client
BuildRequires: openldap2-devel
BuildRequires: pkgconfig
BuildRequires: systemd-rpm-macros
BuildRequires: xz
BuildRequires: pkgconfig(libsystemd)
Requires(pre): %fillup_prereq
Requires(pre): aaa_base
Recommends: nfs-client
%{?systemd_ordering}
%if %{with_sssd}
BuildRequires: sssd
%endif
%if %{with_udisks}
BuildRequires: pkgconfig(udisks2)
%endif
%description
AutoFS is a kernel-based automounter for Linux. It automatically
mounts filesystems when you use them, and unmounts them later when
you are not using them. This can include network filesystems, CD-ROMs,
floppies, and so forth.
%prep
%setup -q
cp %{SOURCE3} .
cp %{SOURCE4} .
cp %{SOURCE5} .
#
%patch -P 100 -p1
%patch -P 101 -p1
%patch -P 102 -p1
%patch -P 104 -p1
%patch -P 106 -p1
%patch -P 108 -p1
%patch -P 109 -p1
%patch -P 110 -p1
%build
autoreconf -fiv
SUSE_ASNEEDED=0
%configure %{_target_cpu}-suse-linux \
--libdir=%{_libdir} --mandir=%{_mandir} \
--with-confdir=%{_sysconfdir}/sysconfig \
--disable-mount-locking \
--enable-forced-shutdown \
--enable-ignore-busy \
--with-systemd \
--with-libtirpc \
--with-hesiod=no \
--with-sasl
%make_build all DONTSTRIP=1 LOCAL_CFLAGS="%{optflags} %(getconf LFS_CFLAGS)" \
%{?_smp_mflags}
%install
%make_install INSTALLROOT=%{buildroot} install_samples
install -d -m 755 %{buildroot}%{_sysconfdir}/auto.master.d
install -D -m 644 %{SOURCE1} %{buildroot}%{_fillupdir}/sysconfig.autofs
install -D -m 755 %{SOURCE7} %{buildroot}%{_prefix}/lib/NetworkManager/dispatcher.d/autofs
ln -s %{_mandir}/man8/autofs.8.gz %{buildroot}/%{_mandir}/man8/rcautofs.8.gz
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcautofs
%if %{with_udisks}
install -D -m 644 %{SOURCE42} %{buildroot}%{_datadir}/dbus-1/system.d/org.freedesktop.AutoMount.conf
%endif
# will be installed by fillup scripts
rm -f %{buildroot}%{_sysconfdir}/sysconfig/autofs
%pre
%service_add_pre %{name}.service
%post
%service_add_post %{name}.service
%fillup_only
%preun
%{stop_on_removal autofs}
%service_del_preun %{name}.service
%fillup_only
%postun
%service_del_postun %{name}.service
%files
%license COPYRIGHT
%{_fillupdir}/sysconfig.autofs
%config(noreplace) %{_sysconfdir}/autofs.conf
%config(noreplace) %{_sysconfdir}/auto.master
%config(noreplace) %{_sysconfdir}/auto.misc
%config(noreplace) %{_sysconfdir}/auto.net
%config(noreplace) %{_sysconfdir}/auto.smb
%config(noreplace) %{_sysconfdir}/autofs_ldap_auth.conf
%if %{with_udisks}
%{_datadir}/dbus-1/system.d/org.freedesktop.AutoMount.conf
%endif
%dir %{_sysconfdir}/auto.master.d
%dir %{_prefix}/lib/NetworkManager
%dir %{_prefix}/lib/NetworkManager/dispatcher.d
%attr(0755,root,root) %{_prefix}/lib/NetworkManager/dispatcher.d/autofs
%doc README README.changer README.ncpfs README.replicated-server
%doc README.smbfs README.v5.release autofs.schema README.active-restart
%doc README.SUSE README.SUSE.ldap
%dir %{_libdir}/autofs/
%{_libdir}/libautofs.so
%{_libdir}/autofs/
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_sbindir}/automount
%{_sbindir}/rcautofs
%{_unitdir}/autofs.service
%changelog

57
get-upstream-patches Normal file
View File

@ -0,0 +1,57 @@
#! /bin/bash
#
# get autofs upstream patched from
# http://www.kernel.org/pub/linux/daemons/autofs/v5/patches-$version/
# and cat them in one bzipped file
# autofs-$LATEST_RELEASE-upstream-patches-$DATE
# where DATE is the date of the top patch in the series
#
# usage: get-upstream-patches
LATEST_RELEASE="5.0.9"
NEXT_RELEASE="5.0.10"
BASE=http://www.kernel.org/pub/linux/daemons/autofs/v5/patches-$NEXT_RELEASE/
SERIES=patch_order-$LATEST_RELEASE
WGET_OPTS=-q
PATCHDIR=upstream-patches-$LATEST_RELEASE
CURRENT=$PWD
DELIMITER=$(mktemp)
test -x /usr/bin/wget || { echo "wget is missing!"; exit 1; }
test -x /usr/bin/bzip2 || { echo "bzip2 is missing!"; exit 1; }
test -x /usr/bin/sed || { echo "sed is missing!"; exit 1; }
test -d $PATCHDIR || mkdir $PATCHDIR
pushd $PATCHDIR > /dev/null 2>&1
rm -f $SERIES
echo "retrieving series file $SERIES"
wget $WGET_OPTS $BASE/$SERIES
sed -i '/^#/d' $SERIES
while read patch
do
if test -r "$patch"; then
echo "$patch ...skipping"
else
echo "$patch ...retrieving"
wget $WGET_OPTS $BASE/$patch
fi
done < $SERIES
LAST=$(sed -e "/^$/d" $SERIES | tail -n 1)
DATE=$(stat -c "%y" $LAST | cut -d' ' -f 1 | sed "s/-//g")
echo > $DELIMITER
echo "----------" >> $DELIMITER
echo >> $DELIMITER
cat $SERIES $DELIMITER $(cat $SERIES) > $CURRENT/autofs-$LATEST_RELEASE-upstream-patches-$DATE
rm -f $DELIMITER
bzip2 $CURRENT/autofs-$LATEST_RELEASE-upstream-patches-$DATE
popd > /dev/null 2>&1

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- Only root can own the service -->
<policy user="root">
<allow own="org.freedesktop.AutoMount"/>
<allow send_destination="org.freedesktop.UDisks"/>
<allow send_destination="org.freedesktop.UDisks"
send_interface="org.freedesktop.DBus.Properties"/>
<allow send_destination="org.freedesktop.UDisks"
send_interface="org.freedesktop.DBus.Introspectable"/>
<allow send_destination="org.freedesktop.UDisks"
send_interface="org.freedesktop.UDisks"/>
<allow send_destination="org.freedesktop.UDisks"
send_interface="org.freedesktop.UDisks.Device"/>
<allow send_destination="org.freedesktop.UDisks"
send_interface="org.freedesktop.UDisks.Adapter"/>
<allow send_destination="org.freedesktop.UDisks"
send_interface="org.freedesktop.UDisks.Expander"/>
<allow send_destination="org.freedesktop.UDisks"
send_interface="org.freedesktop.UDisks.Port"/>
</policy>
</busconfig>

15
sysconfig.autofs Normal file
View File

@ -0,0 +1,15 @@
## Path: System/File systems/Autofs
## Description: Options that will be used when the daemon is started.
## Type: string
## Default: ""
## ServiceReload: autofs
#
OPTIONS=""
## Description: Use AutoFS miscellaneous device (/dev/autofs).
## Type: string
## Default: "yes"
#
# Determine whether the AutoFS misc device (/dev/autofs) will be used
# for routing ioctl commands. Requires kernel support (2.6.28 and newer).
USE_MISC_DEVICE="yes"