<commit_before>From: <NAME> <<EMAIL>>
Date: Fri, 21 Feb 2014 00:49:35 +0000 (-0800)
Subject: Add a pam module to set smack label (PTREL-549)
X-Git-Tag: accepted/tizen/generic/20140225.074541~1
X-Git-Url: https://review.tizen.org/gerrit/gitweb?p=platform%2Fupstream%2Fpam.git;a=commitdiff_plain;h=e9fdd38aa536be354b972b74e4fef8f961e7c73d

Add a pam module to set smack label (PTREL-549)

After some back and forth, this was deemed to be sufficient for now, as
other solutions where wrong in an equal number of cases, but where
substantially more complicated.

Adds a session module that just sets context to "User"

Change-Id: I5a72fee29519d89d6b8ea60cd970d0438a0cb7cd
Signed-off-by: <NAME> <<EMAIL>>
---

diff --git a/configure.in b/configure.in
index ae762a2..2749f0c 100644
--- a/configure.in
+++ b/configure.in
@@ -498,6 +498,9 @@ if test ! -z "$LIBSELINUX" ; then
     LIBS=$BACKUP_LIBS
 fi
 
+dnl hacks for pam_smack
+PKG_CHECK_MODULES([LIBSMACK], [libsmack])
+
 dnl Checks for header files.
 AC_HEADER_DIRENT
 AC_HEADER_STDC
@@ -625,6 +628,7 @@ AC_CONFIG_FILES([Makefile libpam/Makefile libpamc/Makefile libpamc/test/Makefile
 	modules/pam_unix/Makefile modules/pam_userdb/Makefile \
 	modules/pam_warn/Makefile modules/pam_wheel/Makefile \
 	modules/pam_xauth/Makefile doc/Makefile doc/specs/Makefile \
+	modules/pam_smack/Makefile \
 	doc/man/Makefile doc/sag/Makefile doc/adg/Makefile \
 	doc/mwg/Makefile examples/Makefile tests/Makefile \<commit_msg>meta-security-smack: Forward port pam-smack-so.patch to 1.2.x libpam<commit_after>From: <NAME> <<EMAIL>>
Date: Fri, 21 Feb 2014 00:49:35 +0000 (-0800)
Subject: Add a pam module to set smack label (PTREL-549)
X-Git-Tag: accepted/tizen/generic/20140225.074541~1
X-Git-Url: https://review.tizen.org/gerrit/gitweb?p=platform%2Fupstream%2Fpam.git;a=commitdiff_plain;h=e9fdd38aa536be354b972b74e4fef8f961e7c73d

Add a pam module to set smack label (PTREL-549)

After some back and forth, this was deemed to be sufficient for now, as
other solutions where wrong in an equal number of cases, but where
substantially more complicated.

Adds a session module that just sets context to "User"

Change-Id: I5a72fee29519d89d6b8ea60cd970d0438a0cb7cd
Signed-off-by: <NAME> <<EMAIL>>
---

diff --git a/configure.ac b/configure.ac
index ae762a2..2749f0c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -498,6 +498,9 @@ if test ! -z "$LIBSELINUX" ; then
     LIBS=$BACKUP_LIBS
 fi
 
+dnl hacks for pam_smack
+PKG_CHECK_MODULES([LIBSMACK], [libsmack])
+
 dnl Checks for header files.
 AC_HEADER_DIRENT
 AC_HEADER_STDC
@@ -625,6 +628,7 @@ AC_CONFIG_FILES([Makefile libpam/Makefile libpamc/Makefile libpamc/test/Makefile
 	modules/pam_unix/Makefile modules/pam_userdb/Makefile \
 	modules/pam_warn/Makefile modules/pam_wheel/Makefile \
 	modules/pam_xauth/Makefile doc/Makefile doc/specs/Makefile \
+	modules/pam_smack/Makefile \
 	doc/man/Makefile doc/sag/Makefile doc/adg/Makefile \
 	doc/mwg/Makefile examples/Makefile tests/Makefile \
{'fraction_non_alphanumeric': 0.11219348337252268, 'fraction_numerical': 0.08061807188444743, 'mean_word_length': 4.793774319066148, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2277535', 'n_tokens_mistral': 1328, 'n_tokens_neox': 1168, 'n_words': 264}