public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Linux: lchmod and AT_SYMLINK_NOFOLLOW support for fchmodat
@ 2020-01-22 20:03 Florian Weimer
  2020-01-22 20:03 ` [PATCH 1/5] support: Add the xlstat function Florian Weimer
                   ` (5 more replies)
  0 siblings, 6 replies; 33+ messages in thread
From: Florian Weimer @ 2020-01-22 20:03 UTC (permalink / raw)
  To: libc-alpha

These patches use the O_PATH hack to implement a fairly close
approximation of fchmodat in AT_SYMLINK_NOFOLLOW mode.

musl has an implementation of fchmodat which works on paths which do not
refer to symbolic links, so this addresses a portability hazard.

Thanks,
Florian

Florian Weimer (5):
  support: Add the xlstat function
  io: Implement lchmod using fchmodat [BZ #14578]
  Linux: Emulate fchmodat with AT_SYMLINK_NOFOLLOW using O_PATH [BZ
    #14578]
  io: Add io/tst-lchmod covering lchmod and fchmodat
  Linux: Add op/tst-o_path-locks

 include/sys/stat.h                         |   1 +
 io/Makefile                                |   2 +-
 io/fchmodat.c                              |   1 +
 io/lchmod.c                                |  10 +-
 io/tst-lchmod.c                            | 309 +++++++++++++++++++++
 support/Makefile                           |   1 +
 support/xlstat.c                           |  28 ++
 support/xunistd.h                          |   1 +
 sysdeps/mach/hurd/fchmodat.c               |   1 +
 sysdeps/unix/sysv/linux/Makefile           |   2 +-
 sysdeps/unix/sysv/linux/fchmodat.c         |  62 ++++-
 sysdeps/unix/sysv/linux/tst-o_path-locks.c | 100 +++++++
 12 files changed, 500 insertions(+), 18 deletions(-)
 create mode 100644 io/tst-lchmod.c
 create mode 100644 support/xlstat.c
 create mode 100644 sysdeps/unix/sysv/linux/tst-o_path-locks.c

-- 
2.24.1

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2020-08-25 12:16 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-22 20:03 [PATCH 0/5] Linux: lchmod and AT_SYMLINK_NOFOLLOW support for fchmodat Florian Weimer
2020-01-22 20:03 ` [PATCH 1/5] support: Add the xlstat function Florian Weimer
2020-01-22 20:03 ` [PATCH 2/5] io: Implement lchmod using fchmodat [BZ #14578] Florian Weimer
2020-01-22 20:03 ` [PATCH 3/5] Linux: Emulate fchmodat with AT_SYMLINK_NOFOLLOW using O_PATH " Florian Weimer
2020-02-09  8:31   ` Paul Eggert
2020-02-09  8:58     ` Florian Weimer
2020-02-09 10:06       ` Paul Eggert
2020-02-09 10:33         ` Florian Weimer
2020-02-11 15:25         ` Florian Weimer
2020-02-12  1:37           ` Paul Eggert
2020-01-22 20:04 ` [PATCH 4/5] io: Add io/tst-lchmod covering lchmod and fchmodat Florian Weimer
2020-02-11 15:27   ` Florian Weimer
2020-02-12 18:52     ` Adhemerval Zanella
2020-02-12 18:55       ` Florian Weimer
2020-02-12 19:41         ` Adhemerval Zanella
2020-02-12 20:01           ` Florian Weimer
2020-02-12 20:28             ` Florian Weimer
2020-01-22 20:27 ` [PATCH 5/5] Linux: Add op/tst-o_path-locks Florian Weimer
2020-07-21  9:46 ` [PATCH 0/5] Linux: lchmod and AT_SYMLINK_NOFOLLOW support for fchmodat Andreas Schwab
2020-07-21  9:54   ` Florian Weimer
2020-08-17 15:46     ` Dmitry V. Levin
2020-08-25 10:21     ` Andreas Schwab
2020-08-25 10:24       ` Florian Weimer
2020-08-25 10:53         ` Andreas Schwab
2020-08-25 11:04           ` Florian Weimer
2020-08-25 11:08             ` Andreas Schwab
2020-08-25 11:09               ` Florian Weimer
2020-08-25 11:15                 ` Andreas Schwab
2020-08-25 11:16                   ` Florian Weimer
2020-08-25 11:22                     ` Andreas Schwab
2020-08-25 11:28                       ` Florian Weimer
2020-08-25 12:13                         ` Andreas Schwab
2020-08-25 12:16                           ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).