android_kernel_samsung_msm8226/drivers/tty
Mark Salyzyn 065dbe59f8 BACKPORT: fiq_debugger: restrict access to critical commands.
Sysrq must be enabled via /proc/sys/kernel/sysrq as a security
measure to enable various critical fiq debugger commands that
either leak information or can be used as a system attack.

Default disabled, this will leave the reboot, reset, irqs, sleep,
nosleep, console and ps commands.  Reboot and reset commands
will be restricted from taking any parameters.  We will also
switch to showing the limited command set in this mode.

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 32402555
[d-cagle@codeaurora.org: Resolve merge conflict]
Git-repo: https://android.googlesource.com/kernel/msm
Git-commit: 1031836c0895f1f5a05c25efec83bfa11aa08ca9
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>

Backport reference:
 * Adapted for arch/arm/common/fiq_debugger.c
 * Adapt to the old use of debug_printf

Change-Id: I0a6aecd9b3d5bd62db06beac76682349854198d7
Signed-off-by: Adrian DC <radian.dc@gmail.com>
CVE-2017-0510
Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
2019-08-06 12:24:29 +02:00
..
hvc Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
ipwireless
serial Merge remote-tracking branch 'google-common/deprecated/android-3.4' into lineage-16.0 2019-08-06 11:41:21 +02:00
vt Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
Kconfig
Makefile
amiserial.c
bfin_jtag_comm.c
cyclades.c
ehv_bytechan.c
isicom.c
moxa.c
moxa.h
mxser.c
mxser.h
n_gsm.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
n_hdlc.c
n_r3964.c
n_smux.c misc: Import SM-G900H kernel source code 2019-08-02 15:14:10 +02:00
n_tracerouter.c
n_tracesink.c
n_tracesink.h
n_tty.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
nozomi.c
pty.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
rocket.c
rocket.h
rocket_int.h
smux_ctl.c
smux_debug.c
smux_loopback.c misc: Import SM-G900H kernel source code 2019-08-02 15:14:10 +02:00
smux_loopback.h
smux_private.h
smux_test.c
synclink.c
synclink_gt.c
synclinkmp.c
sysrq.c BACKPORT: fiq_debugger: restrict access to critical commands. 2019-08-06 12:24:29 +02:00
tty_audit.c
tty_buffer.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
tty_io.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
tty_ioctl.c Merge tag 'v3.4.113' into lineage-16.0 2019-08-05 14:20:47 +02:00
tty_ldisc.c misc: Import SM-G900H kernel source code 2019-08-02 15:14:10 +02:00
tty_mutex.c
tty_port.c