History

init: add an init_chroot helper

Add a simple helper to chroot with a kernel space file name and switch the early init code over to it. Remove the now unused ksys_chroot.

Christoph Hellwig committed 6 years ago

Commit 4b7ca501 parent db63f1e7 files · +30 −12Browse files

Showing the changes to include/linux (2 of 7 files). Show all

Unified · Split

2 files
  1. include/linux/init_syscalls.h +1 −0
  2. include/linux/syscalls.h +0 −2
include/linux/init_syscalls.h+1−0
@@ -4,5 +4,6 @@ int __init init_mount(const char *dev_name, const char *dir_name, · 3 unmodified lines
44 const char *type_page, unsigned long flags, void *data_page);
55 int __init init_umount(const char *name, int flags);
66 int __init init_chdir(const char *filename);
7+int __init init_chroot(const char *filename);
78 int __init init_unlink(const char *pathname);
89 int __init init_rmdir(const char *pathname);
include/linux/syscalls.h+0−2
@@ -1235,8 +1235,6 @@ asmlinkage long sys_ni_syscall(void); · 1234 unmodified lines
12351235 * Instead, use one of the functions which work equivalently, such as
12361236 * the ksys_xyzyyz() functions prototyped below.
12371237 */
1238−
1239−int ksys_chroot(const char __user *filename);
12401238 ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count);
12411239 int ksys_fchown(unsigned int fd, uid_t user, gid_t group);
12421240 ssize_t ksys_read(unsigned int fd, char __user *buf, size_t count);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t