Skip to content

Commit

Permalink
tested maxlen of /proc/cmdline turns out to 256
Browse files Browse the repository at this point in the history
  • Loading branch information
falconindy committed Apr 21, 2011
1 parent 4f588b7 commit 4f25baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.c
Expand Up @@ -25,7 +25,7 @@
#define err(...) {fprintf(stderr, "error: " __VA_ARGS__);} #define err(...) {fprintf(stderr, "error: " __VA_ARGS__);}
#define die(...) {err(__VA_ARGS__); _exit(1);} #define die(...) {err(__VA_ARGS__); _exit(1);}


#define CMDLINE_SIZE 2048 /* from arch/x86/include/asm/setup.h */ #define CMDLINE_SIZE 257 /* 256 max cmdline len + NULL */
#define TMPFS_FLAGS MS_NOEXEC|MS_NODEV|MS_NOSUID #define TMPFS_FLAGS MS_NOEXEC|MS_NODEV|MS_NOSUID


#define NEWROOT "/new_root" #define NEWROOT "/new_root"
Expand Down

0 comments on commit 4f25baf

Please sign in to comment.