diff --git a/Changelog b/Changelog
index 1c51524..8289f4a 100644
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,4 @@
+- Add unused interface/template parameter metadata in XML.
- Patch to handle postfix data_directory from Vaclav Ovsik.
- SE-Postgresql policy from KaiGai Kohei.
- Patch for X.org dbus support from Martin Orr.
diff --git a/doc/policy.dtd b/doc/policy.dtd
index e6a4182..b797f71 100644
--- a/doc/policy.dtd
+++ b/doc/policy.dtd
@@ -28,7 +28,8 @@
+ optional (true|false) "false"
+ unused (true|false) "false">
Parameters
-
-Parameter: | Description: | Optional: |
+
+Parameter: | Description: |
[[for arg in int['interface_parameters']]]
[[arg['name']]]
|
[[arg['desc']]]
- |
-[[arg['optional']]]
|
[[end]]
diff --git a/doc/templates/template.html b/doc/templates/template.html
index c24a83e..251d227 100644
--- a/doc/templates/template.html
+++ b/doc/templates/template.html
@@ -35,15 +35,13 @@
[[temp['template_desc']]]
[[end]]
Parameters
-
-Parameter: | Description: | Optional: |
+
+Parameter: | Description: |
[[for arg in temp['template_parameters']]]
[[arg['name']]]
|
[[arg['desc']]]
- |
-[[arg['optional']]]
|
[[end]]
diff --git a/policy/modules/services/cpucontrol.if b/policy/modules/services/cpucontrol.if
index a827592..d7b79e7 100644
--- a/policy/modules/services/cpucontrol.if
+++ b/policy/modules/services/cpucontrol.if
@@ -4,7 +4,7 @@
##
## CPUcontrol stub interface. No access allowed.
##
-##
+##
##
## N/A
##
diff --git a/policy/modules/services/dbus.if b/policy/modules/services/dbus.if
index 1485fdd..f0d1847 100644
--- a/policy/modules/services/dbus.if
+++ b/policy/modules/services/dbus.if
@@ -4,7 +4,7 @@
##
## DBUS stub interface. No access allowed.
##
-##
+##
##
## N/A
##
@@ -236,7 +236,7 @@ template(`dbus_system_bus_client_template',`
## is the prefix for user_t).
##
##
-##
+##
##
## The prefix of the domain (e.g., user
## is the prefix for user_t).
diff --git a/policy/modules/services/mta.if b/policy/modules/services/mta.if
index 9488fb0..b20fb95 100644
--- a/policy/modules/services/mta.if
+++ b/policy/modules/services/mta.if
@@ -4,7 +4,7 @@
##
## MTA stub interface. No access allowed.
##
-##
+##
##
## N/A
##
diff --git a/policy/modules/services/ntp.if b/policy/modules/services/ntp.if
index ab5a15f..6330439 100644
--- a/policy/modules/services/ntp.if
+++ b/policy/modules/services/ntp.if
@@ -4,7 +4,7 @@
##
## NTP stub interface. No access allowed.
##
-##
+##
##
## N/A
##
diff --git a/policy/modules/services/postfix.if b/policy/modules/services/postfix.if
index 5cf7186..8ec787c 100644
--- a/policy/modules/services/postfix.if
+++ b/policy/modules/services/postfix.if
@@ -165,7 +165,7 @@ template(`postfix_user_domain_template',`
##
## The per role template for the postfix module.
##
-##
+##
##
## The prefix of the user domain.
## (e.g., user is the prefix of user_t)
@@ -176,6 +176,11 @@ template(`postfix_user_domain_template',`
## User domain type.
##
##
+##
+##
+## User role
+##
+##
#
template(`postfix_per_role_template',`
gen_require(`
diff --git a/policy/modules/services/qmail.if b/policy/modules/services/qmail.if
index 4c90a54..e14d35e 100644
--- a/policy/modules/services/qmail.if
+++ b/policy/modules/services/qmail.if
@@ -11,7 +11,7 @@
## by policy writers.
##
##
-##
+##
##
## The prefix of the user domain (e.g., user
## is the prefix for user_t).
diff --git a/policy/modules/services/rhgb.if b/policy/modules/services/rhgb.if
index c859f23..c9711c6 100644
--- a/policy/modules/services/rhgb.if
+++ b/policy/modules/services/rhgb.if
@@ -4,7 +4,7 @@
##
## RHGB stub interface. No access allowed.
##
-##
+##
##
## N/A
##
diff --git a/policy/modules/services/rpc.if b/policy/modules/services/rpc.if
index afc5e81..294f0ad 100644
--- a/policy/modules/services/rpc.if
+++ b/policy/modules/services/rpc.if
@@ -4,7 +4,7 @@
##
## RPC stub interface. No access allowed.
##
-##
+##
##
## N/A
##
diff --git a/policy/modules/services/sendmail.if b/policy/modules/services/sendmail.if
index 4e176de..3e7077f 100644
--- a/policy/modules/services/sendmail.if
+++ b/policy/modules/services/sendmail.if
@@ -4,7 +4,7 @@
##
## Sendmail stub interface. No access allowed.
##
-##
+##
##
## N/A
##
diff --git a/policy/modules/system/pcmcia.if b/policy/modules/system/pcmcia.if
index 4932c0b..b819b95 100644
--- a/policy/modules/system/pcmcia.if
+++ b/policy/modules/system/pcmcia.if
@@ -4,7 +4,7 @@
##
## PCMCIA stub interface. No access allowed.
##
-##
+##
##
## N/A
##
diff --git a/support/sedoctool.py b/support/sedoctool.py
index f15a5b5..5bbaf76 100644
--- a/support/sedoctool.py
+++ b/support/sedoctool.py
@@ -465,9 +465,14 @@ def gen_docs(doc, working_dir, templatedir):
paramopt = "Yes"
else:
paramopt = "No"
+ if args.getAttribute("unused") == "true":
+ paramunused = "Yes"
+ else:
+ paramunused = "No"
parameter = { "name" : paramname,
"desc" : paramdesc,
- "optional" : paramopt }
+ "optional" : paramopt,
+ "unused" : paramunused }
interface_parameters.append(parameter)
interfaces.append( { "interface_name" : interface_name,
"interface_summary" : interface_summary,
@@ -506,9 +511,14 @@ def gen_docs(doc, working_dir, templatedir):
paramopt = "Yes"
else:
paramopt = "No"
+ if args.getAttribute("unused") == "true":
+ paramunused = "Yes"
+ else:
+ paramunused = "No"
parameter = { "name" : paramname,
"desc" : paramdesc,
- "optional" : paramopt }
+ "optional" : paramopt,
+ "unused": paramunused }
template_parameters.append(parameter)
templates.append( { "template_name" : template_name,
"template_summary" : template_summary,