The branch stable/15 has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=a2b261dc4010d92b38fe303d1d5347a95bcbee5c

commit a2b261dc4010d92b38fe303d1d5347a95bcbee5c
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2026-09-25 23:52:45 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2026-12-04 19:23:06 +0000

    Regen
---
 lib/libsys/_libsys.h                           |  4 +++
 lib/libsys/syscalls.map                        |  4 +++
 sys/compat/freebsd32/freebsd32_syscall.h       |  4 ++-
 sys/compat/freebsd32/freebsd32_syscalls.c      |  2 ++
 sys/compat/freebsd32/freebsd32_sysent.c        |  2 ++
 sys/compat/freebsd32/freebsd32_systrace_args.c | 44 ++++++++++++++++++++++++++
 sys/kern/init_sysent.c                         |  2 ++
 sys/kern/syscalls.c                            |  2 ++
 sys/kern/systrace_args.c                       | 44 ++++++++++++++++++++++++++
 sys/sys/syscall.h                              |  4 ++-
 sys/sys/syscall.mk                             |  4 ++-
 sys/sys/sysproto.h                             | 10 ++++++
 12 files changed, 123 insertions(+), 3 deletions(-)

diff --git a/lib/libsys/_libsys.h b/lib/libsys/_libsys.h
index f3a042058518..f2479d341911 100644
--- a/lib/libsys/_libsys.h
+++ b/lib/libsys/_libsys.h
@@ -476,6 +476,8 @@ typedef int (__sys_renameat2_t)(int, const char *, int, 
const char *, int);
 typedef int (__sys_pdopenpid_t)(pid_t, int);
 typedef int (__sys_pddupfd_t)(int, int, int);
 typedef int (__sys_pdptrace_t)(int, int, int, void *, int);
+typedef int (__sys_chaltroot_t)(const char *);
+typedef int (__sys_fchaltroot_t)(int);
 
 _Noreturn void __sys__exit(int rval);
 int __sys_fork(void);
@@ -888,6 +890,8 @@ int __sys_renameat2(int oldfd, const char * old, int newfd, 
const char * new, in
 int __sys_pdopenpid(pid_t pid, int flags);
 int __sys_pddupfd(int pd, int fd, int flags);
 int __sys_pdptrace(int req, int pfd, int lwpid, void * addr, int data);
+int __sys_chaltroot(const char * path);
+int __sys_fchaltroot(int fd);
 __END_DECLS
 
 #endif /* __LIBSYS_H_ */
diff --git a/lib/libsys/syscalls.map b/lib/libsys/syscalls.map
index 8f3f0fcea833..6b98f24f89a4 100644
--- a/lib/libsys/syscalls.map
+++ b/lib/libsys/syscalls.map
@@ -829,4 +829,8 @@ FBSDprivate_1.0 {
        __sys_pddupfd;
        _pdptrace;
        __sys_pdptrace;
+       _chaltroot;
+       __sys_chaltroot;
+       _fchaltroot;
+       __sys_fchaltroot;
 };
diff --git a/sys/compat/freebsd32/freebsd32_syscall.h 
b/sys/compat/freebsd32/freebsd32_syscall.h
index 89928b09314b..55cabfe02db1 100644
--- a/sys/compat/freebsd32/freebsd32_syscall.h
+++ b/sys/compat/freebsd32/freebsd32_syscall.h
@@ -523,4 +523,6 @@
 #define        FREEBSD32_SYS_pdopenpid 603
 #define        FREEBSD32_SYS_pddupfd   604
 #define        FREEBSD32_SYS_freebsd32_pdptrace        605
-#define        FREEBSD32_SYS_MAXSYSCALL        606
+#define        FREEBSD32_SYS_chaltroot 606
+#define        FREEBSD32_SYS_fchaltroot        607
+#define        FREEBSD32_SYS_MAXSYSCALL        608
diff --git a/sys/compat/freebsd32/freebsd32_syscalls.c 
b/sys/compat/freebsd32/freebsd32_syscalls.c
index 21b502da676f..f8d84549dd83 100644
--- a/sys/compat/freebsd32/freebsd32_syscalls.c
+++ b/sys/compat/freebsd32/freebsd32_syscalls.c
@@ -611,4 +611,6 @@ const char *freebsd32_syscallnames[] = {
        "pdopenpid",                    /* 603 = pdopenpid */
        "pddupfd",                      /* 604 = pddupfd */
        "freebsd32_pdptrace",                   /* 605 = freebsd32_pdptrace */
+       "chaltroot",                    /* 606 = chaltroot */
+       "fchaltroot",                   /* 607 = fchaltroot */
 };
diff --git a/sys/compat/freebsd32/freebsd32_sysent.c 
b/sys/compat/freebsd32/freebsd32_sysent.c
index 18051b230bfc..d52ad8e64433 100644
--- a/sys/compat/freebsd32/freebsd32_sysent.c
+++ b/sys/compat/freebsd32/freebsd32_sysent.c
@@ -673,4 +673,6 @@ struct sysent freebsd32_sysent[] = {
        { .sy_narg = AS(pdopenpid_args), .sy_call = (sy_call_t *)sys_pdopenpid, 
.sy_auevent = AUE_PDOPENPID, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = 
SY_THR_STATIC },  /* 603 = pdopenpid */
        { .sy_narg = AS(pddupfd_args), .sy_call = (sy_call_t *)sys_pddupfd, 
.sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC },        /* 
604 = pddupfd */
        { .sy_narg = AS(freebsd32_pdptrace_args), .sy_call = (sy_call_t 
*)freebsd32_pdptrace, .sy_auevent = AUE_PDPTRACE, .sy_flags = SYF_CAPENABLED, 
.sy_thrcnt = SY_THR_STATIC },     /* 605 = freebsd32_pdptrace */
+       { .sy_narg = AS(chaltroot_args), .sy_call = (sy_call_t *)sys_chaltroot, 
.sy_auevent = AUE_CHALTROOT, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC },       
/* 606 = chaltroot */
+       { .sy_narg = AS(fchaltroot_args), .sy_call = (sy_call_t 
*)sys_fchaltroot, .sy_auevent = AUE_FCHALTROOT, .sy_flags = 0, .sy_thrcnt = 
SY_THR_STATIC },    /* 607 = fchaltroot */
 };
diff --git a/sys/compat/freebsd32/freebsd32_systrace_args.c 
b/sys/compat/freebsd32/freebsd32_systrace_args.c
index e2dfd5a59975..1f5153fc7287 100644
--- a/sys/compat/freebsd32/freebsd32_systrace_args.c
+++ b/sys/compat/freebsd32/freebsd32_systrace_args.c
@@ -3486,6 +3486,20 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, 
int *n_args)
                *n_args = 5;
                break;
        }
+       /* chaltroot */
+       case 606: {
+               struct chaltroot_args *p = params;
+               uarg[a++] = (intptr_t)p->path; /* const char * */
+               *n_args = 1;
+               break;
+       }
+       /* fchaltroot */
+       case 607: {
+               struct fchaltroot_args *p = params;
+               iarg[a++] = p->fd; /* int */
+               *n_args = 1;
+               break;
+       }
        default:
                *n_args = 0;
                break;
@@ -9426,6 +9440,26 @@ systrace_entry_setargdesc(int sysnum, int ndx, char 
*desc, size_t descsz)
                        break;
                };
                break;
+       /* chaltroot */
+       case 606:
+               switch (ndx) {
+               case 0:
+                       p = "userland const char *";
+                       break;
+               default:
+                       break;
+               };
+               break;
+       /* fchaltroot */
+       case 607:
+               switch (ndx) {
+               case 0:
+                       p = "int";
+                       break;
+               default:
+                       break;
+               };
+               break;
        default:
                break;
        };
@@ -11374,6 +11408,16 @@ systrace_return_setargdesc(int sysnum, int ndx, char 
*desc, size_t descsz)
                if (ndx == 0 || ndx == 1)
                        p = "int";
                break;
+       /* chaltroot */
+       case 606:
+               if (ndx == 0 || ndx == 1)
+                       p = "int";
+               break;
+       /* fchaltroot */
+       case 607:
+               if (ndx == 0 || ndx == 1)
+                       p = "int";
+               break;
        default:
                break;
        };
diff --git a/sys/kern/init_sysent.c b/sys/kern/init_sysent.c
index 9b266b979763..0fce93fca0a9 100644
--- a/sys/kern/init_sysent.c
+++ b/sys/kern/init_sysent.c
@@ -672,4 +672,6 @@ struct sysent sysent[] = {
        { .sy_narg = AS(pdopenpid_args), .sy_call = (sy_call_t *)sys_pdopenpid, 
.sy_auevent = AUE_PDOPENPID, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = 
SY_THR_STATIC },  /* 603 = pdopenpid */
        { .sy_narg = AS(pddupfd_args), .sy_call = (sy_call_t *)sys_pddupfd, 
.sy_auevent = AUE_NULL, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC },        /* 
604 = pddupfd */
        { .sy_narg = AS(pdptrace_args), .sy_call = (sy_call_t *)sys_pdptrace, 
.sy_auevent = AUE_PDPTRACE, .sy_flags = SYF_CAPENABLED, .sy_thrcnt = 
SY_THR_STATIC },     /* 605 = pdptrace */
+       { .sy_narg = AS(chaltroot_args), .sy_call = (sy_call_t *)sys_chaltroot, 
.sy_auevent = AUE_CHALTROOT, .sy_flags = 0, .sy_thrcnt = SY_THR_STATIC },       
/* 606 = chaltroot */
+       { .sy_narg = AS(fchaltroot_args), .sy_call = (sy_call_t 
*)sys_fchaltroot, .sy_auevent = AUE_FCHALTROOT, .sy_flags = 0, .sy_thrcnt = 
SY_THR_STATIC },    /* 607 = fchaltroot */
 };
diff --git a/sys/kern/syscalls.c b/sys/kern/syscalls.c
index da3ff9221391..063f94f58f68 100644
--- a/sys/kern/syscalls.c
+++ b/sys/kern/syscalls.c
@@ -611,4 +611,6 @@ const char *syscallnames[] = {
        "pdopenpid",                    /* 603 = pdopenpid */
        "pddupfd",                      /* 604 = pddupfd */
        "pdptrace",                     /* 605 = pdptrace */
+       "chaltroot",                    /* 606 = chaltroot */
+       "fchaltroot",                   /* 607 = fchaltroot */
 };
diff --git a/sys/kern/systrace_args.c b/sys/kern/systrace_args.c
index 9a0fda048ba0..18b1eef5c7b6 100644
--- a/sys/kern/systrace_args.c
+++ b/sys/kern/systrace_args.c
@@ -3573,6 +3573,20 @@ systrace_args(int sysnum, void *params, uint64_t *uarg, 
int *n_args)
                *n_args = 5;
                break;
        }
+       /* chaltroot */
+       case 606: {
+               struct chaltroot_args *p = params;
+               uarg[a++] = (intptr_t)p->path; /* const char * */
+               *n_args = 1;
+               break;
+       }
+       /* fchaltroot */
+       case 607: {
+               struct fchaltroot_args *p = params;
+               iarg[a++] = p->fd; /* int */
+               *n_args = 1;
+               break;
+       }
        default:
                *n_args = 0;
                break;
@@ -9571,6 +9585,26 @@ systrace_entry_setargdesc(int sysnum, int ndx, char 
*desc, size_t descsz)
                        break;
                };
                break;
+       /* chaltroot */
+       case 606:
+               switch (ndx) {
+               case 0:
+                       p = "userland const char *";
+                       break;
+               default:
+                       break;
+               };
+               break;
+       /* fchaltroot */
+       case 607:
+               switch (ndx) {
+               case 0:
+                       p = "int";
+                       break;
+               default:
+                       break;
+               };
+               break;
        default:
                break;
        };
@@ -11609,6 +11643,16 @@ systrace_return_setargdesc(int sysnum, int ndx, char 
*desc, size_t descsz)
                if (ndx == 0 || ndx == 1)
                        p = "int";
                break;
+       /* chaltroot */
+       case 606:
+               if (ndx == 0 || ndx == 1)
+                       p = "int";
+               break;
+       /* fchaltroot */
+       case 607:
+               if (ndx == 0 || ndx == 1)
+                       p = "int";
+               break;
        default:
                break;
        };
diff --git a/sys/sys/syscall.h b/sys/sys/syscall.h
index c86e653e550e..71d3020f696b 100644
--- a/sys/sys/syscall.h
+++ b/sys/sys/syscall.h
@@ -543,4 +543,6 @@
 #define        SYS_pdopenpid   603
 #define        SYS_pddupfd     604
 #define        SYS_pdptrace    605
-#define        SYS_MAXSYSCALL  606
+#define        SYS_chaltroot   606
+#define        SYS_fchaltroot  607
+#define        SYS_MAXSYSCALL  608
diff --git a/sys/sys/syscall.mk b/sys/sys/syscall.mk
index 6184f1f92bcc..714f7a2c73aa 100644
--- a/sys/sys/syscall.mk
+++ b/sys/sys/syscall.mk
@@ -446,4 +446,6 @@ MIASM =  \
        renameat2.o \
        pdopenpid.o \
        pddupfd.o \
-       pdptrace.o
+       pdptrace.o \
+       chaltroot.o \
+       fchaltroot.o
diff --git a/sys/sys/sysproto.h b/sys/sys/sysproto.h
index 120a166261fe..fe3dafa1c89d 100644
--- a/sys/sys/sysproto.h
+++ b/sys/sys/sysproto.h
@@ -1942,6 +1942,12 @@ struct pdptrace_args {
        char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
        char data_l_[PADL_(int)]; int data; char data_r_[PADR_(int)];
 };
+struct chaltroot_args {
+       char path_l_[PADL_(const char *)]; const char * path; char 
path_r_[PADR_(const char *)];
+};
+struct fchaltroot_args {
+       char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
+};
 int    sys__exit(struct thread *, struct _exit_args *);
 int    sys_fork(struct thread *, struct fork_args *);
 int    sys_read(struct thread *, struct read_args *);
@@ -2354,6 +2360,8 @@ int       sys_renameat2(struct thread *, struct 
renameat2_args *);
 int    sys_pdopenpid(struct thread *, struct pdopenpid_args *);
 int    sys_pddupfd(struct thread *, struct pddupfd_args *);
 int    sys_pdptrace(struct thread *, struct pdptrace_args *);
+int    sys_chaltroot(struct thread *, struct chaltroot_args *);
+int    sys_fchaltroot(struct thread *, struct fchaltroot_args *);
 
 #ifdef COMPAT_43
 
@@ -3358,6 +3366,8 @@ int       freebsd14_setgroups(struct thread *, struct 
freebsd14_setgroups_args *);
 #define        SYS_AUE_pdopenpid       AUE_PDOPENPID
 #define        SYS_AUE_pddupfd AUE_NULL
 #define        SYS_AUE_pdptrace        AUE_PDPTRACE
+#define        SYS_AUE_chaltroot       AUE_CHALTROOT
+#define        SYS_AUE_fchaltroot      AUE_FCHALTROOT
 
 #undef PAD_
 #undef PADL_

Reply via email to