]> git.pld-linux.org Git - packages/lxd.git/blob - glibc2_36.patch
- up to 4.24
[packages/lxd.git] / glibc2_36.patch
1 --- a/shared/idmap/shift_linux.go       2022-03-11 04:52:20.000000000 +0100
2 +++ b/shared/idmap/shift_linux.go       2022-11-22 09:18:23.513333279 +0100
3 @@ -314,7 +314,7 @@
4  static int create_detached_idmapped_mount(const char *path)
5  {
6         __do_close int fd_tree = -EBADF, fd_userns = -EBADF;
7 -       struct lxc_mount_attr attr = {
8 +       struct mount_attr attr = {
9             .attr_set           = MOUNT_ATTR_IDMAP,
10             .propagation        = MS_SLAVE,
11  
12 --- a/lxd/include/syscall_wrappers.h    2022-11-22 09:10:03.053333289 +0100
13 +++ b/lxd/include/syscall_wrappers.h    2022-11-22 09:20:55.586666611 +0100
14 @@ -11,7 +11,7 @@
15  #include <sys/syscall.h>
16  #include <sys/types.h>
17  #include <unistd.h>
18 -
19 +#include <sys/mount.h>
20  #include "syscall_numbers.h"
21  
22  #ifndef CLOSE_RANGE_UNSHARE
23 @@ -27,7 +27,7 @@
24         return syscall(__NR_close_range, fd, max_fd, flags);
25  }
26  
27 -static inline int open_tree(int dfd, const char *filename, unsigned int flags)
28 +static inline int xopen_tree(int dfd, const char *filename, unsigned int flags)
29  {
30         return syscall(__NR_open_tree, dfd, filename, flags);
31  }
32 @@ -42,13 +42,13 @@
33         __u64 userns_fd;
34  };
35  
36 -static inline int mount_setattr(int dfd, const char *path, unsigned int flags,
37 +static inline int xmount_setattr(int dfd, const char *path, unsigned int flags,
38                                 struct lxc_mount_attr *attr, size_t size)
39  {
40         return syscall(__NR_mount_setattr, dfd, path, flags, attr, size);
41  }
42  
43 -static inline int move_mount(int from_dfd, const char *from_pathname, int to_dfd,
44 +static inline int xmove_mount(int from_dfd, const char *from_pathname, int to_dfd,
45                              const char *to_pathname, unsigned int flags)
46  {
47         return syscall(__NR_move_mount, from_dfd, from_pathname, to_dfd,
48 --- a/lxd/main_checkfeature.go  2022-03-11 04:52:20.000000000 +0100
49 +++ b/lxd/main_checkfeature.go  2022-11-22 10:54:47.506666609 +0100
50 @@ -563,7 +563,7 @@
51  static bool kernel_supports_idmapped_mounts(void)
52  {
53         __do_close int fd_devnull = -EBADF, fd_tree = -EBADF;
54 -       struct lxc_mount_attr attr = {
55 +       struct mount_attr attr = {
56             .attr_set           = MOUNT_ATTR_IDMAP,
57  
58         };
59 --- a/lxd/main_nsexec.go        2022-03-11 04:52:20.000000000 +0100
60 +++ b/lxd/main_nsexec.go        2022-11-22 10:59:03.776666604 +0100
61 @@ -298,7 +298,7 @@
62  int mount_detach_idmap(const char *path, int fd_userns)
63  {
64         __do_close int fd_tree = -EBADF;
65 -       struct lxc_mount_attr attr = {
66 +       struct mount_attr attr = {
67             .attr_set           = MOUNT_ATTR_IDMAP,
68  
69         };
This page took 0.085589 seconds and 3 git commands to generate.