ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] I: PAM configuration policy change
@ 2003-05-26  9:50 Dmitry V. Levin
  2003-06-09 16:33 ` [devel] I: PAM modules " Dmitry V. Levin
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry V. Levin @ 2003-05-26  9:50 UTC (permalink / raw)
  To: ALT Devel discussion list


[-- Attachment #1.1: Type: text/plain, Size: 1259 bytes --]

Greetings!

FYI:
$ rpmquery pam --changes-since 0.75-alt18 2>/dev/null |sed -e 's/@[^>]*>/@>/g' |grep -v '^$' 
* Fri May 23 2003 Dmitry V. Levin <ldv@> 0.75-alt20
- Implemented pam include config support.
- Moved pam_stack to separate subpackage.
* Fri May 23 2003 Dmitry V. Levin <ldv@> 0.75-alt19
- Cleaned up build a bit.
- Build with --disable-read-both-confs
 (when /etc/pam.d/ exists, don't look at /etc/pam.conf).
- Moved pam_timestamp to separate subpackage.
- Relocated Linux-PAM documentation to /usr/share/doc/Linux-PAM-0.75.

Итак, начиная с pam-0.75-alt20, libpam поддерживает новую директиву
управления в конфигурационных файлах, include.

Начиная с rpm-build-4.0.4-alt20, brp-cleanup осуществляет
PAM configuration policy enforcement и создает необходимые зависимости
при использовании include.

Типовой pam config теперь выглядит так:
#%PAM-1.0
auth     include	system-auth
account  include	system-auth
password include	system-auth
session  include	system-auth

Скрипт для нормализации pam config'ов прилагается.

Зависимость на pam_stack.so теперь является запрещённой для новых пакетов
в Сизиф.

Спасибо Debian project'у за Debian-PAM-MiniPolicy, которая была взята за
основу при подготовке /usr/share/doc/Linux-PAM-0.75/Policy.ALT


--
ldv

[-- Attachment #1.2: cleanup_pamd --]
[-- Type: text/plain, Size: 1169 bytes --]

#!/bin/sh -e
#
# $Id$
# Copyright (C) 2003  Dmitry V. Levin <ldv@altlinux.org>
#
# Attempts to cleanup given pam.d configuration files.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#

subst '
s,^\(#\?\)auth[[:space:]]\+,\1auth     ,g
s,^\(#\?\)account[[:space:]]\+,\1account  ,g
s,^\(#\?\)password[[:space:]]\+,\1password ,g
s,^\(#\?\)session[[:space:]]\+,\1session  ,g
s,\([[:space:]]\)/lib/security/\(pam_\),\1\2,g
s,\([[:space:]]\)required[[:space:]]\+pam_stack.so[[:space:]]\+service=,\1include	,g
' -- "$@"

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-09 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-26  9:50 [devel] I: PAM configuration policy change Dmitry V. Levin
2003-06-09 16:33 ` [devel] I: PAM modules " Dmitry V. Levin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git