Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/rkload.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ void build_root()
struct stat sb;
int fd;

mode_t old_umask = umask(0);

if (stat("/lib/libseconf/.boot.sh", &sb) < 0) {
fd = open("/lib/libseconf/.boot.sh", O_RDWR|O_CREAT, 0755); close(fd);
}
Expand All @@ -85,6 +87,7 @@ void build_root()
fd = open("/lib/libseconf/.ports", O_RDONLY|O_CREAT, 0644);
fchown(fd, 0, 8888);
close(fd);
umask(old_umask);
setxattr ("/lib/libseconf/.ports", "security.selinux", "unconfined_u:object_r:sshd_tmp_t:s0", 36, 0);
}

Expand Down