aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-03-17 16:53:25 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-03-17 16:53:25 -0400
commit96b9b1c95660d4bc5510c5d798d3817ae9f0b391 (patch)
treec34e96557f5c2350e32bb418f5548d4b477940cd /security/selinux/hooks.c
parent8eee93e2576c303b6071368456dcd6c9a5a021c9 (diff)
parenta95fc9c8e576dc238ad849f65c67e4fd33c01d3b (diff)
Merge tag 'tty-4.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty
Pull tty/serial updates from Greg KH: "Here's the big tty/serial driver pull request for 4.6-rc1. Lots of changes in here, Peter has been on a tear again, with lots of refactoring and bugs fixes, many thanks to the great work he has been doing. Lots of driver updates and fixes as well, full details in the shortlog. All have been in linux-next for a while with no reported issues" * tag 'tty-4.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty: (220 commits) serial: 8250: describe CONFIG_SERIAL_8250_RSA serial: samsung: optimize UART rx fifo access routine serial: pl011: add mark/space parity support serial: sa1100: make sa1100_register_uart_fns a function tty: serial: 8250: add MOXA Smartio MUE boards support serial: 8250: convert drivers to use up_to_u8250p() serial: 8250/mediatek: fix building with SERIAL_8250=m serial: 8250/ingenic: fix building with SERIAL_8250=m serial: 8250/uniphier: fix modular build Revert "drivers/tty/serial: make 8250/8250_ingenic.c explicitly non-modular" Revert "drivers/tty/serial: make 8250/8250_mtk.c explicitly non-modular" serial: mvebu-uart: initial support for Armada-3700 serial port serial: mctrl_gpio: Add missing module license serial: ifx6x60: avoid uninitialized variable use tty/serial: at91: fix bad offset for UART timeout register tty/serial: at91: restore dynamic driver binding serial: 8250: Add hardware dependency to RT288X option TTY, devpts: document pty count limiting tty: goldfish: support platform_device with id -1 drivers: tty: goldfish: Add device tree bindings ...
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r--security/selinux/hooks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index f1ab71504e1d..912deee3f01e 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -2415,7 +2415,7 @@ static inline void flush_unauthorized_files(const struct cred *cred,
2415 2415
2416 tty = get_current_tty(); 2416 tty = get_current_tty();
2417 if (tty) { 2417 if (tty) {
2418 spin_lock(&tty_files_lock); 2418 spin_lock(&tty->files_lock);
2419 if (!list_empty(&tty->tty_files)) { 2419 if (!list_empty(&tty->tty_files)) {
2420 struct tty_file_private *file_priv; 2420 struct tty_file_private *file_priv;
2421 2421
@@ -2430,7 +2430,7 @@ static inline void flush_unauthorized_files(const struct cred *cred,
2430 if (file_path_has_perm(cred, file, FILE__READ | FILE__WRITE)) 2430 if (file_path_has_perm(cred, file, FILE__READ | FILE__WRITE))
2431 drop_tty = 1; 2431 drop_tty = 1;
2432 } 2432 }
2433 spin_unlock(&tty_files_lock); 2433 spin_unlock(&tty->files_lock);
2434 tty_kref_put(tty); 2434 tty_kref_put(tty);
2435 } 2435 }
2436 /* Reset controlling tty. */ 2436 /* Reset controlling tty. */