2005-04-17 06:20:36 +08:00
|
|
|
#
|
|
|
|
# Makefile for the kernel character device drivers.
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# This file contains the font map for the default (hardware) font
|
|
|
|
#
|
|
|
|
FONTMAPFILE = cp437.uni
|
|
|
|
|
2008-10-13 17:37:07 +08:00
|
|
|
obj-y += mem.o random.o tty_io.o n_tty.o tty_ioctl.o tty_ldisc.o tty_buffer.o tty_port.o
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
obj-$(CONFIG_LEGACY_PTYS) += pty.o
|
|
|
|
obj-$(CONFIG_UNIX98_PTYS) += pty.o
|
|
|
|
obj-y += misc.o
|
2008-06-03 21:59:40 +08:00
|
|
|
obj-$(CONFIG_VT) += vt_ioctl.o vc_screen.o selection.o keyboard.o
|
2009-06-11 21:01:45 +08:00
|
|
|
obj-$(CONFIG_BFIN_JTAG_COMM) += bfin_jtag_comm.o
|
2008-06-03 21:59:40 +08:00
|
|
|
obj-$(CONFIG_CONSOLE_TRANSLATIONS) += consolemap.o consolemap_deftbl.o
|
2005-04-17 06:20:36 +08:00
|
|
|
obj-$(CONFIG_HW_CONSOLE) += vt.o defkeymap.o
|
Audit: add TTY input auditing
Add TTY input auditing, used to audit system administrator's actions. This is
required by various security standards such as DCID 6/3 and PCI to provide
non-repudiation of administrator's actions and to allow a review of past
actions if the administrator seems to overstep their duties or if the system
becomes misconfigured for unknown reasons. These requirements do not make it
necessary to audit TTY output as well.
Compared to an user-space keylogger, this approach records TTY input using the
audit subsystem, correlated with other audit events, and it is completely
transparent to the user-space application (e.g. the console ioctls still
work).
TTY input auditing works on a higher level than auditing all system calls
within the session, which would produce an overwhelming amount of mostly
useless audit events.
Add an "audit_tty" attribute, inherited across fork (). Data read from TTYs
by process with the attribute is sent to the audit subsystem by the kernel.
The audit netlink interface is extended to allow modifying the audit_tty
attribute, and to allow sending explanatory audit events from user-space (for
example, a shell might send an event containing the final command, after the
interactive command-line editing and history expansion is performed, which
might be difficult to decipher from the TTY input alone).
Because the "audit_tty" attribute is inherited across fork (), it would be set
e.g. for sshd restarted within an audited session. To prevent this, the
audit_tty attribute is cleared when a process with no open TTY file
descriptors (e.g. after daemon startup) opens a TTY.
See https://www.redhat.com/archives/linux-audit/2007-June/msg00000.html for a
more detailed rationale document for an older version of this patch.
[akpm@linux-foundation.org: build fix]
Signed-off-by: Miloslav Trmac <mitr@redhat.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Paul Fulghum <paulkf@microgate.com>
Cc: Casey Schaufler <casey@schaufler-ca.com>
Cc: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-07-16 14:40:56 +08:00
|
|
|
obj-$(CONFIG_AUDIT) += tty_audit.o
|
2005-04-17 06:20:36 +08:00
|
|
|
obj-$(CONFIG_MAGIC_SYSRQ) += sysrq.o
|
|
|
|
obj-$(CONFIG_ESPSERIAL) += esp.o
|
|
|
|
obj-$(CONFIG_MVME147_SCC) += generic_serial.o vme_scc.o
|
|
|
|
obj-$(CONFIG_MVME162_SCC) += generic_serial.o vme_scc.o
|
|
|
|
obj-$(CONFIG_BVME6000_SCC) += generic_serial.o vme_scc.o
|
|
|
|
obj-$(CONFIG_ROCKETPORT) += rocket.o
|
|
|
|
obj-$(CONFIG_SERIAL167) += serial167.o
|
|
|
|
obj-$(CONFIG_CYCLADES) += cyclades.o
|
|
|
|
obj-$(CONFIG_STALLION) += stallion.o
|
|
|
|
obj-$(CONFIG_ISTALLION) += istallion.o
|
2007-11-09 21:49:23 +08:00
|
|
|
obj-$(CONFIG_NOZOMI) += nozomi.o
|
2005-04-17 06:20:36 +08:00
|
|
|
obj-$(CONFIG_DIGIEPCA) += epca.o
|
|
|
|
obj-$(CONFIG_SPECIALIX) += specialix.o
|
|
|
|
obj-$(CONFIG_MOXA_INTELLIO) += moxa.o
|
|
|
|
obj-$(CONFIG_A2232) += ser_a2232.o generic_serial.o
|
|
|
|
obj-$(CONFIG_ATARI_DSP56K) += dsp56k.o
|
|
|
|
obj-$(CONFIG_MOXA_SMARTIO) += mxser.o
|
2006-01-20 01:07:10 +08:00
|
|
|
obj-$(CONFIG_COMPUTONE) += ip2/
|
2005-04-17 06:20:36 +08:00
|
|
|
obj-$(CONFIG_RISCOM8) += riscom8.o
|
|
|
|
obj-$(CONFIG_ISI) += isicom.o
|
|
|
|
obj-$(CONFIG_SYNCLINK) += synclink.o
|
|
|
|
obj-$(CONFIG_SYNCLINKMP) += synclinkmp.o
|
2006-01-08 17:02:06 +08:00
|
|
|
obj-$(CONFIG_SYNCLINK_GT) += synclink_gt.o
|
2005-04-17 06:20:36 +08:00
|
|
|
obj-$(CONFIG_N_HDLC) += n_hdlc.o
|
|
|
|
obj-$(CONFIG_AMIGA_BUILTIN_SERIAL) += amiserial.o
|
|
|
|
obj-$(CONFIG_SX) += sx.o generic_serial.o
|
|
|
|
obj-$(CONFIG_RIO) += rio/ generic_serial.o
|
2006-03-28 03:25:16 +08:00
|
|
|
obj-$(CONFIG_HVC_CONSOLE) += hvc_vio.o hvsi.o
|
2006-07-13 16:51:22 +08:00
|
|
|
obj-$(CONFIG_HVC_ISERIES) += hvc_iseries.o
|
2006-03-28 03:26:03 +08:00
|
|
|
obj-$(CONFIG_HVC_RTAS) += hvc_rtas.o
|
2007-02-02 15:44:08 +08:00
|
|
|
obj-$(CONFIG_HVC_BEAT) += hvc_beat.o
|
2006-06-11 00:54:16 +08:00
|
|
|
obj-$(CONFIG_HVC_DRIVER) += hvc_console.o
|
2008-06-20 21:24:08 +08:00
|
|
|
obj-$(CONFIG_HVC_IRQ) += hvc_irq.o
|
2007-07-18 09:37:06 +08:00
|
|
|
obj-$(CONFIG_HVC_XEN) += hvc_xen.o
|
2008-12-25 20:38:57 +08:00
|
|
|
obj-$(CONFIG_HVC_IUCV) += hvc_iucv.o
|
2008-11-05 22:20:17 +08:00
|
|
|
obj-$(CONFIG_HVC_UDBG) += hvc_udbg.o
|
2007-10-22 09:03:39 +08:00
|
|
|
obj-$(CONFIG_VIRTIO_CONSOLE) += virtio_console.o
|
2005-04-17 06:20:36 +08:00
|
|
|
obj-$(CONFIG_RAW_DRIVER) += raw.o
|
2005-04-26 04:28:52 +08:00
|
|
|
obj-$(CONFIG_SGI_SNSC) += snsc.o snsc_event.o
|
2006-09-27 16:50:11 +08:00
|
|
|
obj-$(CONFIG_MSPEC) += mspec.o
|
2005-04-17 06:20:36 +08:00
|
|
|
obj-$(CONFIG_MMTIMER) += mmtimer.o
|
2009-09-24 06:57:15 +08:00
|
|
|
obj-$(CONFIG_UV_MMTIMER) += uv_mmtimer.o
|
2005-04-17 06:20:36 +08:00
|
|
|
obj-$(CONFIG_VIOTAPE) += viotape.o
|
|
|
|
obj-$(CONFIG_HVCS) += hvcs.o
|
2008-07-08 13:45:11 +08:00
|
|
|
obj-$(CONFIG_IBM_BSR) += bsr.o
|
2005-04-26 04:09:41 +08:00
|
|
|
obj-$(CONFIG_SGI_MBCS) += mbcs.o
|
2006-07-04 13:06:20 +08:00
|
|
|
obj-$(CONFIG_BRIQ_PANEL) += briq_panel.o
|
2008-04-25 08:04:56 +08:00
|
|
|
obj-$(CONFIG_BFIN_OTP) += bfin-otp.o
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2006-03-25 01:10:34 +08:00
|
|
|
obj-$(CONFIG_PRINTER) += lp.o
|
|
|
|
|
2007-02-10 01:08:57 +08:00
|
|
|
obj-$(CONFIG_APM_EMULATION) += apm-emulation.o
|
|
|
|
|
2006-03-25 01:10:34 +08:00
|
|
|
obj-$(CONFIG_DTLK) += dtlk.o
|
|
|
|
obj-$(CONFIG_R3964) += n_r3964.o
|
|
|
|
obj-$(CONFIG_APPLICOM) += applicom.o
|
|
|
|
obj-$(CONFIG_SONYPI) += sonypi.o
|
|
|
|
obj-$(CONFIG_RTC) += rtc.o
|
|
|
|
obj-$(CONFIG_HPET) += hpet.o
|
|
|
|
obj-$(CONFIG_GEN_RTC) += genrtc.o
|
|
|
|
obj-$(CONFIG_EFI_RTC) += efirtc.o
|
|
|
|
obj-$(CONFIG_DS1302) += ds1302.o
|
2008-02-06 01:24:09 +08:00
|
|
|
obj-$(CONFIG_XILINX_HWICAP) += xilinx_hwicap/
|
2005-04-17 06:20:36 +08:00
|
|
|
ifeq ($(CONFIG_GENERIC_NVRAM),y)
|
2006-03-25 01:10:34 +08:00
|
|
|
obj-$(CONFIG_NVRAM) += generic_nvram.o
|
2005-04-17 06:20:36 +08:00
|
|
|
else
|
2006-03-25 01:10:34 +08:00
|
|
|
obj-$(CONFIG_NVRAM) += nvram.o
|
2005-04-17 06:20:36 +08:00
|
|
|
endif
|
2006-03-25 01:10:34 +08:00
|
|
|
obj-$(CONFIG_TOSHIBA) += toshiba.o
|
|
|
|
obj-$(CONFIG_I8K) += i8k.o
|
|
|
|
obj-$(CONFIG_DS1620) += ds1620.o
|
2006-06-26 15:24:59 +08:00
|
|
|
obj-$(CONFIG_HW_RANDOM) += hw_random/
|
2006-03-25 01:10:34 +08:00
|
|
|
obj-$(CONFIG_PPDEV) += ppdev.o
|
|
|
|
obj-$(CONFIG_NWBUTTON) += nwbutton.o
|
|
|
|
obj-$(CONFIG_NWFLASH) += nwflash.o
|
2006-06-27 17:54:27 +08:00
|
|
|
obj-$(CONFIG_SCx200_GPIO) += scx200_gpio.o
|
|
|
|
obj-$(CONFIG_PC8736x_GPIO) += pc8736x_gpio.o
|
|
|
|
obj-$(CONFIG_NSC_GPIO) += nsc_gpio.o
|
2006-03-25 01:10:34 +08:00
|
|
|
obj-$(CONFIG_CS5535_GPIO) += cs5535_gpio.o
|
2007-05-07 05:51:58 +08:00
|
|
|
obj-$(CONFIG_GPIO_TB0219) += tb0219.o
|
2006-03-25 01:10:34 +08:00
|
|
|
obj-$(CONFIG_TELCLOCK) += tlclk.o
|
|
|
|
|
|
|
|
obj-$(CONFIG_MWAVE) += mwave/
|
|
|
|
obj-$(CONFIG_AGP) += agp/
|
|
|
|
obj-$(CONFIG_PCMCIA) += pcmcia/
|
|
|
|
obj-$(CONFIG_IPMI_HANDLER) += ipmi/
|
|
|
|
|
|
|
|
obj-$(CONFIG_HANGCHECK_TIMER) += hangcheck-timer.o
|
|
|
|
obj-$(CONFIG_TCG_TPM) += tpm/
|
|
|
|
|
2007-07-21 19:37:48 +08:00
|
|
|
obj-$(CONFIG_PS3_FLASH) += ps3flash.o
|
|
|
|
|
2007-07-22 15:37:48 +08:00
|
|
|
obj-$(CONFIG_JS_RTC) += js-rtc.o
|
|
|
|
js-rtc-y = rtc.o
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
# Files generated that shall be removed upon make clean
|
2006-10-02 22:19:00 +08:00
|
|
|
clean-files := consolemap_deftbl.c defkeymap.c
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
quiet_cmd_conmk = CONMK $@
|
|
|
|
cmd_conmk = scripts/conmakehash $< > $@
|
|
|
|
|
|
|
|
$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE)
|
|
|
|
$(call cmd,conmk)
|
|
|
|
|
|
|
|
$(obj)/defkeymap.o: $(obj)/defkeymap.c
|
|
|
|
|
|
|
|
# Uncomment if you're changing the keymap and have an appropriate
|
|
|
|
# loadkeys version for the map. By default, we'll use the shipped
|
|
|
|
# versions.
|
|
|
|
# GENERATE_KEYMAP := 1
|
|
|
|
|
|
|
|
ifdef GENERATE_KEYMAP
|
|
|
|
|
2007-10-09 06:59:13 +08:00
|
|
|
$(obj)/defkeymap.c: $(obj)/%.c: $(src)/%.map
|
2005-04-17 06:20:36 +08:00
|
|
|
loadkeys --mktable $< > $@.tmp
|
|
|
|
sed -e 's/^static *//' $@.tmp > $@
|
|
|
|
rm $@.tmp
|
|
|
|
|
|
|
|
endif
|