mirror of
https://github.com/linux-pam/linux-pam.git
synced 2024-11-24 10:22:47 +08:00
Relevant BUGIDs: 436057, 476970
Purpose of commit: cleanup Commit summary: --------------- general comment, make and include cleanup.
This commit is contained in:
parent
61a4ef2862
commit
8a2221a503
@ -49,6 +49,8 @@ bug report - outstanding bugs are listed here:
|
||||
0.76: please submit patches for this section with actual code/doc
|
||||
patches!
|
||||
|
||||
* pam_filter cleanup (including moving the filter directory) Nalin
|
||||
and Harald Welte (Bugs 436057, 476970 - agmorgan)
|
||||
* pam_limits can handle negative priority limits now (which can apply
|
||||
to the superuser too) - base on patch from Nalin. (Bug 476990 -
|
||||
agmorgan)
|
||||
|
@ -18,7 +18,7 @@ include ../../Make.Rules
|
||||
|
||||
TITLE=pam_filter
|
||||
FILTERS=upperLOWER
|
||||
FILTERSDIR=$(SUPLEMENTED)/pam_filter
|
||||
FILTERSDIR=$(SECUREDIR)/pam_filter
|
||||
export FILTERSDIR
|
||||
|
||||
CFLAGS += -Iinclude
|
||||
|
@ -150,7 +150,7 @@ static int process_args(pam_handle_t *pamh
|
||||
|
||||
/* the "ARGS" variable */
|
||||
|
||||
#define ARGS_OFFSET 5 /* sizeof("ARGS="); */
|
||||
#define ARGS_OFFSET 5 /* sizeof('ARGS='); */
|
||||
#define ARGS_NAME "ARGS="
|
||||
|
||||
size += ARGS_OFFSET;
|
||||
@ -174,7 +174,7 @@ static int process_args(pam_handle_t *pamh
|
||||
|
||||
/* the "SERVICE" variable */
|
||||
|
||||
#define SERVICE_OFFSET 8 /* sizeof("SERVICE="); */
|
||||
#define SERVICE_OFFSET 8 /* sizeof('SERVICE='); */
|
||||
#define SERVICE_NAME "SERVICE="
|
||||
|
||||
pam_get_item(pamh, PAM_SERVICE, (const void **)&tmp);
|
||||
@ -196,7 +196,7 @@ static int process_args(pam_handle_t *pamh
|
||||
|
||||
/* the "USER" variable */
|
||||
|
||||
#define USER_OFFSET 5 /* sizeof("USER="); */
|
||||
#define USER_OFFSET 5 /* sizeof('USER='); */
|
||||
#define USER_NAME "USER="
|
||||
|
||||
pam_get_user(pamh, &tmp, NULL);
|
||||
@ -222,7 +222,7 @@ static int process_args(pam_handle_t *pamh
|
||||
|
||||
/* the "USER" variable */
|
||||
|
||||
#define TYPE_OFFSET 5 /* sizeof("TYPE="); */
|
||||
#define TYPE_OFFSET 5 /* sizeof('TYPE='); */
|
||||
#define TYPE_NAME "TYPE="
|
||||
|
||||
size = TYPE_OFFSET+strlen(type);
|
||||
|
@ -21,7 +21,7 @@ OBJS = $(TITLE).o
|
||||
all: $(TITLE)
|
||||
|
||||
$(TITLE): $(OBJS)
|
||||
$(CC) -o $(TITLE) $(OBJS)
|
||||
$(CC) $(CFLAGS) -o $(TITLE) $(OBJS)
|
||||
$(STRIP) $(TITLE)
|
||||
|
||||
install:
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include <security/_pam_aconf.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <syslog.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
|
Loading…
Reference in New Issue
Block a user