Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56532
b: refs/heads/master
c: 71ce92f
h: refs/heads/master
v: v3
  • Loading branch information
Dan Aloni authored and Linus Torvalds committed May 17, 2007
1 parent 6734f3a commit 24d12aa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bc88d5d4e18add7283770ead2734b601c50b3e2a
refs/heads/master: 71ce92f3fa442069670a52fa6230a6064c4517b3
4 changes: 1 addition & 3 deletions trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
#endif

int core_uses_pid;
char core_pattern[128] = "core";
char core_pattern[CORENAME_MAX_SIZE] = "core";
int suid_dumpable = 0;

EXPORT_SYMBOL(suid_dumpable);
Expand Down Expand Up @@ -1264,8 +1264,6 @@ int set_binfmt(struct linux_binfmt *new)

EXPORT_SYMBOL(set_binfmt);

#define CORENAME_MAX_SIZE 64

/* format_corename will inspect the pattern parameter, and output a
* name into corename, which must have space for at least
* CORENAME_MAX_SIZE bytes plus one byte for the zero terminator.
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/linux/binfmts.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ struct pt_regs;

#ifdef __KERNEL__

#define CORENAME_MAX_SIZE 128

/*
* This structure is used to hold the arguments that are used when loading binaries.
*/
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ static ctl_table kern_table[] = {
.ctl_name = KERN_CORE_PATTERN,
.procname = "core_pattern",
.data = core_pattern,
.maxlen = 128,
.maxlen = CORENAME_MAX_SIZE,
.mode = 0644,
.proc_handler = &proc_dostring,
.strategy = &sysctl_string,
Expand Down

0 comments on commit 24d12aa

Please sign in to comment.