[devel] I: PAM configuration policy change

Dmitry V. Levin =?iso-8859-1?q?ldv_=CE=C1_altlinux=2Eorg?=
Пн Май 26 13:50:59 MSD 2003


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
----------- следующая часть -----------
#!/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
' -- "$@"
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип     : application/pgp-signature
Размер  : 189 байтов
Описание: =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20030526/d54e90c6/attachment-0001.bin>


Подробная информация о списке рассылки Devel