Commit Graph

30 Commits

Author SHA1 Message Date
Ian Kent
4c6235a8ea - add fixes for bz2147491. 2022-11-29 10:47:46 +08:00
Ian Kent
2b852f1510 - add fix for bug 2131907. 2022-10-31 09:05:57 +08:00
Ian Kent
cae98da176 - add changes for bugs 2122565 and 2126176. 2022-10-06 09:31:47 +08:00
Ian Kent
511169a715 libnss_sss: threads stuck at sss_nss_lock from initgroups
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2087535

In threaded programs it's required to not call functions that are
not async-thread safe between fork(2) and exec(3).

Unfortunately initgroups(3) is not async-thread safe but is called
between these two functions and it leads to automount(8) hanging.

But getgroups(2) and setgroups(2) can be used for this and even though
setgroups(2) is not listed as async-thread safe it is in fact safe to
call here.

This MR changes automount(8) to use getgroups(2)/setgroups(2) instead
if initgroups(3) and testing shows that this resolves the hang problem.

Resolves: rhbz#2087535

Signed-off-by: Ian Kent ikent@redhat.com
2022-05-30 10:28:50 +08:00
Ian Kent
f6d5c04b79 autofs is slow to mount when doing lookups returns multiple entries
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2084108

autofs can take 5 seconds or more to automount file systems in some
cases. This is caused by the server probe logic attempting to connect
to a server when it isn't available.

Attempting to fix this problem introduced a regression where rpcbind
was being consulted in a case where it shouldn't have been.

This MR resolves these problems.

Note that for NFSv4 mounts, if rpcbind is to be avoided then fallback
to NFSv3 must be disabled. This has historically been done by using
the "fstype=nfs4" automount option to requiest a specific nfs version.

Resolves: rhbz#2084108

Signed-off-by: Ian Kent ikent@redhat.com
2022-05-18 09:52:43 +08:00
Ian Kent
1350def07e autofs attempts unmount on directory in use
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2056321

There is a case where a multi-mount tree can be be umounted when it's
still in use.

This MR resolves one (hopefully the only remaining one) of those cases.

Resolves: rhbz#2056321

Signed-off-by: Ian Kent ikent@redhat.com
2022-05-16 07:13:05 +08:00
Ian Kent
8d8967870e Using -hosts option does not work in RHEL 9 (part 2)
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2056320

Somehow the changes to the rpm spec file got lost from the MR for
bug 2056320. This MR adds them.

Related: rhbz#2056320

Signed-off-by: Ian Kent ikent@redhat.com
2022-05-12 11:18:25 +08:00
Ian Kent
da0ee4c338 Using -hosts option does not work in RHEL 9
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2056320

Changes to resolve internal hosts map problem:
- fix root offset error handling.
- fix nonstrict fail handling of last offset mount.
- dont fail on duplicate offset entry tree add.
- fix loop under run in cache_get_offset_parent().
- simplify cache_add() a little.
- fix use after free in tree_mapent_delete_offset_tree().
- fix memory leak in xdr_exports().
- avoid calling pthread_getspecific() with NULL key_thread_attempt_id.
- fix sysconf(3) return handling.
- remove rpcgen dependedncy, it hasn't been needed since rev 10.

Resolves: rhbz#2056320

Signed-off-by: Ian Kent ikent@redhat.com
2022-05-12 10:13:51 +08:00
Ian Kent
eb91171a41 - add fixes for bug 2028746. 2022-01-09 12:16:28 +08:00
Ian Kent
623c34c5e9 - fix fedfs build flags (realted bug 2028301). 2021-12-21 09:00:12 +08:00
Ian Kent
56a6a32540 - add fix fro bug 2028301. 2021-12-20 09:42:10 +08:00
Mohan Boddu
c9eacdb0f1 Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
Related: rhbz#1991688
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-08-09 19:26:52 +00:00
Ian Kent
866aebf59c - update patch "eliminate-some-more-alloca-usage" for bug 1984813. 2021-08-02 07:54:03 +08:00
Ian Kent
03cd024ae2 - add changes for bug 1984813. 2021-07-30 14:45:13 +08:00
Ian Kent
0bb27b7d95 - correct patch, fix concat_options() error handling for bug 1938682. 2021-07-02 08:04:24 +08:00
Ian Kent
51e42820d4 - add change for bug 1938682. 2021-06-30 11:50:21 +08:00
Ian Kent
1840dcb866 - add gating.yaml (bug 1951393). 2021-06-23 10:22:36 +08:00
Mohan Boddu
9902095ec9 Rebuilt for RHEL 9 BETA for openssl 3.0
Related: rhbz#1971065
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-06-22 18:35:37 +00:00
Ian Kent
13f90f85f9 - add change for bug 1973892. 2021-06-22 10:16:40 +08:00
Ian Kent
36b0802122 - add changes for bugs 1965870, 1965863 and 1966380. 2021-06-14 18:51:16 +08:00
Ian Kent
059c556a9d - add missing patch for bug 1942371, add fixes for bugs 1958489 and 1958486. 2021-05-11 12:05:17 +08:00
Ian Kent
258d54465d - update distribution tar to eliminate rejected license (bug 1951344). 2021-04-20 10:13:45 +08:00
Ian Kent
9eaa5c690e - add changes for bug 1942371. 2021-04-19 08:11:05 +08:00
Ian Kent
b00b719c2d - Coverity fixes resulting from RHEL-8 bug 1912106 change. 2021-04-16 10:15:29 +08:00
Mohan Boddu
89c07c2d7b - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
Signed-off-by: Mohan Boddu <mboddu@redhat.com>
2021-04-15 22:40:58 +00:00
DistroBaker
a5adb69dac Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/autofs.git#25aaf0b69441b4e7370a195cbf1c7988d0abef3d
2021-03-26 02:05:45 +00:00
DistroBaker
5540452da9 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/autofs.git#26e92af90c709b1ad71d61b03ef3f3d6af53d2fc
2021-02-03 11:17:56 +01:00
DistroBaker
752a4ac547 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/autofs.git#8aafe866de6c87bc7ab9084c9a959bc12bcbfa8a
2021-01-25 09:23:02 +00:00
Petr Šabata
a275d04aab RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/autofs#1cda5aaae19a25dd9afa10a9ed1763ac59640019
2020-10-14 22:07:18 +02:00
Release Configuration Management
1f5a199aae New branch setup 2020-10-08 10:58:55 +00:00