-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
…/git/jmorris/security-testing-2.6 * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6: (38 commits) SELinux: Make selinux_kernel_create_files_as() shouldn't just always return 0 TOMOYO: Protect find_task_by_vpid() with RCU. Security: add static to security_ops and default_security_ops variable selinux: libsepol: remove dead code in check_avtab_hierarchy_callback() TOMOYO: Remove __func__ from tomoyo_is_correct_path/domain security: fix a couple of sparse warnings TOMOYO: Remove unneeded parameter. TOMOYO: Use shorter names. TOMOYO: Use enum for index numbers. TOMOYO: Add garbage collector. TOMOYO: Add refcounter on domain structure. TOMOYO: Merge headers. TOMOYO: Add refcounter on string data. TOMOYO: Reduce lines by using common path for addition and deletion. selinux: fix memory leak in sel_make_bools TOMOYO: Extract bitfield syslog: clean up needless comment syslog: use defined constants instead of raw numbers syslog: distinguish between /proc/kmsg and syscalls selinux: allow MLS->non-MLS and vice versa upon policy reload ...
- Loading branch information
Showing
30 changed files
with
2,030 additions
and
1,708 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* Syslog internals | ||
* | ||
* Copyright 2010 Canonical, Ltd. | ||
* Author: Kees Cook <kees.cook@canonical.com> | ||
* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 2, or (at your option) | ||
* any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; see the file COPYING. If not, write to | ||
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | ||
*/ | ||
|
||
#ifndef _LINUX_SYSLOG_H | ||
#define _LINUX_SYSLOG_H | ||
|
||
/* Close the log. Currently a NOP. */ | ||
#define SYSLOG_ACTION_CLOSE 0 | ||
/* Open the log. Currently a NOP. */ | ||
#define SYSLOG_ACTION_OPEN 1 | ||
/* Read from the log. */ | ||
#define SYSLOG_ACTION_READ 2 | ||
/* Read all messages remaining in the ring buffer. */ | ||
#define SYSLOG_ACTION_READ_ALL 3 | ||
/* Read and clear all messages remaining in the ring buffer */ | ||
#define SYSLOG_ACTION_READ_CLEAR 4 | ||
/* Clear ring buffer. */ | ||
#define SYSLOG_ACTION_CLEAR 5 | ||
/* Disable printk's to console */ | ||
#define SYSLOG_ACTION_CONSOLE_OFF 6 | ||
/* Enable printk's to console */ | ||
#define SYSLOG_ACTION_CONSOLE_ON 7 | ||
/* Set level of messages printed to console */ | ||
#define SYSLOG_ACTION_CONSOLE_LEVEL 8 | ||
/* Return number of unread characters in the log buffer */ | ||
#define SYSLOG_ACTION_SIZE_UNREAD 9 | ||
/* Return size of the log buffer */ | ||
#define SYSLOG_ACTION_SIZE_BUFFER 10 | ||
|
||
#define SYSLOG_FROM_CALL 0 | ||
#define SYSLOG_FROM_FILE 1 | ||
|
||
int do_syslog(int type, char __user *buf, int count, bool from_file); | ||
|
||
#endif /* _LINUX_SYSLOG_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
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
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
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
Oops, something went wrong.