<html>
<head>
<base href="https://bugzilla.netfilter.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Allow include statement to operate on directories and/or wildcards"
href="https://bugzilla.netfilter.org/show_bug.cgi?id=1154">1154</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Allow include statement to operate on directories and/or wildcards
</td>
</tr>
<tr>
<th>Product</th>
<td>nftables
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>nft
</td>
</tr>
<tr>
<th>Assignee</th>
<td>pablo@netfilter.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hoxu@users.sf.net
</td>
</tr></table>
<p>
<div>
<pre>ferm include statement [1] allows several ways to include multiple files:
```
If you specify a directory (with a trailing '/'), all files in this directory
are included, sorted alphabetically:
@include 'ferm.d/';
The function @glob can be used to expand wild cards:
@include @glob('*.include');
With a trailing pipe symbol, ferm executes a shell command and parses its
output:
@include "/root/generate_ferm_rules.sh $HOSTNAME|"
ferm aborts, if return code is not 0.
```
I don't personally care about the shell command execution, but being able to
include directories and/or wildcards would be really useful. For example, if
you want to provision various applications to a server, and allow each to
install only the app-specific nftables rules (eg. in
/etc/nftables.d/app.ruleset).
[1] <a href="http://ferm.foo-projects.org/download/2.4/ferm.html#Includes">http://ferm.foo-projects.org/download/2.4/ferm.html#Includes</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>