This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/block.c | |
+++ b/block.c | |
@@ -84,7 +84,7 @@ struct mount { | |
static struct vlist_tree mounts; | |
static struct blob_buf b; | |
static LIST_HEAD(devices); | |
-static int anon_mount, anon_swap, auto_mount, auto_swap, check_fs; | |
+static int anon_mount, anon_swap, auto_mount, auto_swap, check_fs, disable_extroot; | |
static unsigned int delay_root; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/jail/jail.c | |
+++ b/jail/jail.c | |
@@ -585,7 +585,7 @@ static struct mknod_args default_devices | |
{ .path = "/dev/full", .mode = (S_IFCHR|S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH), .dev = makedev(1, 7) }, | |
{ .path = "/dev/random", .mode = (S_IFCHR|S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH), .dev = makedev(1, 8) }, | |
{ .path = "/dev/urandom", .mode = (S_IFCHR|S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH), .dev = makedev(1, 9) }, | |
- { .path = "/dev/tty", .mode = (S_IFCHR|S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP), .dev = makedev(5, 0), .gid = 5 }, | |
+ { .path = "/dev/tty", .mode = (S_IFCHR|S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH), .dev = makedev(5, 0), .gid = 5 }, | |
{ 0 }, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** NEXT COMES WHAT WAS IN /tmp/cntr_env FILE WHEN CREATING CONTAINER, THIS LINE IS NOT INCLUDED IN FILE *** | |
SHLVL=1 | |
PWD=/ | |
31973 | |
cntr | |
0::/services/cntr/cntr | |
0::/services/cntr/cntr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2013 Felix Fietkau <nbd@openwrt.org> | |
* Copyright (C) 2013 John Crispin <blogic@openwrt.org> | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU Lesser General Public License version 2.1 | |
* as published by the Free Software Foundation | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/uxc.c | |
+++ b/uxc.c | |
@@ -82,6 +82,7 @@ enum uxc_cmd { | |
CMD_DISABLE, | |
CMD_DELETE, | |
CMD_CREATE, | |
+ CMD_RESTART, | |
CMD_UNKNOWN | |
}; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/uxc.c | |
+++ b/uxc.c | |
@@ -1598,7 +1598,7 @@ int main(int argc, char **argv) | |
cmd = CMD_START; | |
else if(!strcmp("state", argv[optind])) | |
cmd = CMD_STATE; | |
- else if(!strcmp("kill", argv[optind])) | |
+ else if(!strcmp("kill", argv[optind]) || !strcmp("stop", argv[optind])) | |
cmd = CMD_KILL; | |
else if(!strcmp("enable", argv[optind])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/uxc.c | |
+++ b/uxc.c | |
@@ -27,6 +27,7 @@ | |
#include <unistd.h> | |
#include <sys/stat.h> | |
#include <sys/types.h> | |
+#include <sched.h> | |
#include <libubus.h> | |
#include <libubox/avl-cmp.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
public protocol OptionSetAssociated: OptionSet where RawValue: FixedWidthInteger { | |
var store: [RawValue: Any] { get set } | |
} | |
extension OptionSetAssociated { | |
public init<T>(_ member: Self, value: T) { | |
self.init(rawValue: member.rawValue) |