git: 1abd98ecf9e3 - stable/13 - cat: add CAP_SEEK capability
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 22 Mar 2024 13:36:25 UTC
The branch stable/13 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=1abd98ecf9e31b96ee72cca1431e53361233cc96
commit 1abd98ecf9e31b96ee72cca1431e53361233cc96
Author: Mariusz Zaborski <oshogbo@FreeBSD.org>
AuthorDate: 2023-09-28 13:20:47 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-03-22 13:35:43 +0000
cat: add CAP_SEEK capability
The copy_file_range might require that.
Reviewed by: emaste, theraven, kib, markj
Differential Revision: https://reviews.freebsd.org/D41967
(cherry picked from commit 64c6327738fc24bb34b9f40ff1c223ab460ef637)
(cherry picked from commit 5f527dbe41b804d3fc6a789c5def25b25a44a3a0)
---
bin/cat/cat.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/cat/cat.c b/bin/cat/cat.c
index c13d3ef221f8..0f36bce2098d 100644
--- a/bin/cat/cat.c
+++ b/bin/cat/cat.c
@@ -154,7 +154,7 @@ init_casper(int argc, char *argv[])
err(EXIT_FAILURE, "unable to create Casper");
fa = fileargs_cinit(casper, argc, argv, O_RDONLY, 0,
- cap_rights_init(&rights, CAP_READ | CAP_FSTAT | CAP_FCNTL),
+ cap_rights_init(&rights, CAP_READ | CAP_FSTAT | CAP_FCNTL | CAP_SEEK),
FA_OPEN | FA_REALPATH);
if (fa == NULL)
err(EXIT_FAILURE, "unable to create fileargs");