本文介绍: selinuxpolicydefault(2:2.20231119-2)软件包内容详细介绍(3)

接前一篇文章selinux-policy-default(2:2.20231119-2)软件包内容详细介绍(2)

4. 重点文件内容解析

(1)control/postist文件

上一回讲解postinst文件的前一部分内容,本回继续往下解析。为了便于理解,再次贴出postinst完整代码

#!/bin/sh
set -e

# summary of how this script can be called:
#        * <postinst> `configure' <most-recently-configured-version>
#        * <old-postinst> `abort-upgrade' <new version>
#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
#          <new-version>
#        * <postinst> `abort-remove'
#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
#          <failed-ins

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注