<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="/rss.xsl.xml"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
    <title>Changes in Makefile</title>
    <description></description>
    <language>en</language>
    <copyright>Copyright 2015</copyright>
    <generator>Java</generator><item>
        <title>2a69962b - samples/check-exec: Add an enlighten &quot;inc&quot; interpreter and 28 tests</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/samples/check-exec/Makefile#2a69962b</link>
        <description>samples/check-exec: Add an enlighten &quot;inc&quot; interpreter and 28 testsAdd a very simple script interpreter called &quot;inc&quot; that can evaluate twodifferent commands (one per line):- &quot;?&quot; to initialize a counter from user&apos;s input;- &quot;+&quot; to increment the counter (which is set to 0 by default).It is enlighten to only interpret executable files according toAT_EXECVE_CHECK and the related securebits:  # Executing a script with RESTRICT_FILE is only allowed if the script  # is executable:  ./set-exec -f -- ./inc script-exec.inc # Allowed  ./set-exec -f -- ./inc script-noexec.inc # Denied  # Executing stdin with DENY_INTERACTIVE is only allowed if stdin is an  # executable regular file:  ./set-exec -i -- ./inc -i &lt; script-exec.inc # Allowed  ./set-exec -i -- ./inc -i &lt; script-noexec.inc # Denied  # However, a pipe is not executable and it is then denied:  cat script-noexec.inc | ./set-exec -i -- ./inc -i # Denied  # Executing raw data (e.g. command argument) with DENY_INTERACTIVE is  # always denied.  ./set-exec -i -- ./inc -c &quot;+&quot; # Denied  ./inc -c &quot;$(&lt;script-ask.inc)&quot; # Allowed  # To directly execute a script, we can update $PATH (used by `env`):  PATH=&quot;${PATH}:.&quot; ./script-exec.inc  # To execute several commands passed as argument:Add a complete test suite to check the script interpreter against allpossible execution cases:  make TARGETS=exec kselftest-install  ./tools/testing/selftests/kselftest_install/run_kselftest.shCc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;Cc: Christian Brauner &lt;brauner@kernel.org&gt;Cc: Kees Cook &lt;keescook@chromium.org&gt;Cc: Paul Moore &lt;paul@paul-moore.com&gt;Cc: Serge Hallyn &lt;serge@hallyn.com&gt;Signed-off-by: Micka&#235;l Sala&#252;n &lt;mic@digikod.net&gt;Link: https://lore.kernel.org/r/20241212174223.389435-8-mic@digikod.netSigned-off-by: Kees Cook &lt;kees@kernel.org&gt;

            List of files:
            /linux-6.15/samples/check-exec/Makefile</description>
        <pubDate>Thu, 12 Dec 2024 17:42:22 +0000</pubDate>
        <dc:creator>Micka&#235;l Sala&#252;n &lt;mic@digikod.net&gt;</dc:creator>
    </item>
<item>
        <title>faf2d88e - samples/check-exec: Add set-exec</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/samples/check-exec/Makefile#faf2d88e</link>
        <description>samples/check-exec: Add set-execAdd a simple tool to set SECBIT_EXEC_RESTRICT_FILE orSECBIT_EXEC_DENY_INTERACTIVE before executing a command.  This is usefulto easily test against enlighten script interpreters.Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;Cc: Christian Brauner &lt;brauner@kernel.org&gt;Cc: Kees Cook &lt;keescook@chromium.org&gt;Cc: Paul Moore &lt;paul@paul-moore.com&gt;Cc: Serge Hallyn &lt;serge@hallyn.com&gt;Signed-off-by: Micka&#235;l Sala&#252;n &lt;mic@digikod.net&gt;Link: https://lore.kernel.org/r/20241212174223.389435-6-mic@digikod.netSigned-off-by: Kees Cook &lt;kees@kernel.org&gt;

            List of files:
            /linux-6.15/samples/check-exec/Makefile</description>
        <pubDate>Thu, 12 Dec 2024 17:42:20 +0000</pubDate>
        <dc:creator>Micka&#235;l Sala&#252;n &lt;mic@digikod.net&gt;</dc:creator>
    </item>
</channel>
</rss>
