aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2008-04-03 17:38:43 -0400
committerBill Nottingham <notting@redhat.com>2008-04-03 17:38:43 -0400
commit8107b70fe8168264cbf5b5fed32e41fcafd0e2df (patch)
treeb13e96ce0ef8a1e9fc3983237b4613396f04310b /src/Makefile
parent6aebc60dd20d3528ad5eee0438a4e65f02adfae0 (diff)
downloadinitscripts-8107b70fe8168264cbf5b5fed32e41fcafd0e2df.tar
initscripts-8107b70fe8168264cbf5b5fed32e41fcafd0e2df.tar.gz
initscripts-8107b70fe8168264cbf5b5fed32e41fcafd0e2df.tar.bz2
initscripts-8107b70fe8168264cbf5b5fed32e41fcafd0e2df.tar.xz
initscripts-8107b70fe8168264cbf5b5fed32e41fcafd0e2df.zip
Add a 'securetty' command that frobs /etc/securetty. Call it from the serial event. (#437381)
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 887e2373..b793300b 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -2,7 +2,7 @@ CFLAGS+=$(RPM_OPT_FLAGS) -Wall -D_GNU_SOURCE
PROGS=usernetctl doexec netreport testd usleep ipcalc initlog \
fstab-decode getkey ppp-watch consoletype genhostid rename_device \
- console_init console_check
+ console_init console_check securetty
PPPWATCH_OBJS=ppp-watch.o shvar.o
CONSOLE_INIT_OBJS=console_init.o shvar.o
INITLOG_OBJS=initlog.o process.o
@@ -28,6 +28,7 @@ install:
install -m 755 getkey $(ROOT)/sbin/getkey
install -m 755 ppp-watch $(ROOT)/sbin/ppp-watch
install -m 755 consoletype $(ROOT)/sbin/consoletype
+ install -m 755 securetty $(ROOT)/sbin/securetty
install -m 755 rename_device $(ROOT)/lib/udev/rename_device
install -m 755 console_init $(ROOT)/lib/udev/console_init
install -m 755 console_check $(ROOT)/lib/udev/console_check
@@ -72,6 +73,9 @@ usernetctl.o: usernetctl.c
usernetctl: usernetctl.c usernetctl.o
$(CC) $(LDFLAGS) -pie -o $@ $@.o
+securetty: securetty.o
+ $(CC) $(LDFLAGS) -o $@ $<
+
shvar.o: shvar.c
$(CC) $(CFLAGS) `pkg-config glib-2.0 --cflags` -c shvar.c -o shvar.o