<?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>faabed29 - kbuild: introduce hostprogs-always-y and userprogs-always-y</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/samples/pidfd/Makefile#faabed29</link>
        <description>kbuild: introduce hostprogs-always-y and userprogs-always-yTo build host programs, you need to add the program names to &apos;hostprogs&apos;to use the necessary build rule, but it is not enough to build thembecause there is no dependency.There are two types of host programs: built as the prerequisite ofanother (e.g. gen_crc32table in lib/Makefile), or always built whenKbuild visits the Makefile (e.g. genksyms in scripts/genksyms/Makefile).The latter is typical in Makefiles under scripts/, which contains hostprograms globally used during the kernel build. To build them, you needto add them to both &apos;hostprogs&apos; and &apos;always-y&apos;.This commit adds hostprogs-always-y as a shorthand.The same applies to user programs. net/bpfilter/Makefile buildsbpfilter_umh on demand, hence always-y is unneeded. In contrast,programs under samples/ are added to both &apos;userprogs&apos; and &apos;always-y&apos;so they are always built when Kbuild visits the Makefiles.userprogs-always-y works as a shorthand.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Acked-by: Miguel Ojeda &lt;miguel.ojeda.sandonis@gmail.com&gt;

            List of files:
            /linux-6.15/samples/pidfd/Makefile</description>
        <pubDate>Sat, 01 Aug 2020 12:27:18 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>60fb0b12 - samples: pidfd: build sample program for target architecture</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/samples/pidfd/Makefile#60fb0b12</link>
        <description>samples: pidfd: build sample program for target architectureThis userspace program includes UAPI headers exported to usr/include/.&apos;make headers&apos; always works for the target architecture (i.e. the samearchitecture as the kernel), so the sample program should be built forthe target as well. Kbuild now supports &apos;userprogs&apos; for that.I also guarded the CONFIG option by &apos;depends on CC_CAN_LINK&apos; because$(CC) may not provide libc.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;Acked-by: Sam Ravnborg &lt;sam@ravnborg.org&gt;

            List of files:
            /linux-6.15/samples/pidfd/Makefile</description>
        <pubDate>Wed, 29 Apr 2020 03:45:23 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>5f2fb52f - kbuild: rename hostprogs-y/always to hostprogs/always-y</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/samples/pidfd/Makefile#5f2fb52f</link>
        <description>kbuild: rename hostprogs-y/always to hostprogs/always-yIn old days, the &quot;host-progs&quot; syntax was used for specifying hostprograms. It was renamed to the current &quot;hostprogs-y&quot; in 2004.It is typically useful in scripts/Makefile because it allows Kbuild toselectively compile host programs based on the kernel configuration.This commit renames like follows:  always       -&gt;  always-y  hostprogs-y  -&gt;  hostprogsSo, scripts/Makefile will look like this:  always-$(CONFIG_BUILD_BIN2C) += ...  always-$(CONFIG_KALLSYMS)    += ...      ...  hostprogs := $(always-y) $(always-m)I think this makes more sense because a host program is always a hostprogram, irrespective of the kernel configuration. We want to specifywhich ones to compile by CONFIG options, so always-y will be handier.The &quot;always&quot;, &quot;hostprogs-y&quot;, &quot;hostprogs-m&quot; will be kept for backwardcompatibility for a while.Signed-off-by: Masahiro Yamada &lt;masahiroy@kernel.org&gt;

            List of files:
            /linux-6.15/samples/pidfd/Makefile</description>
        <pubDate>Sat, 01 Feb 2020 16:49:24 +0000</pubDate>
        <dc:creator>Masahiro Yamada &lt;masahiroy@kernel.org&gt;</dc:creator>
    </item>
<item>
        <title>43c6afee - samples: show race-free pidfd metadata access</title>
        <link>http://172.16.0.5:8080/history/linux-6.15/samples/pidfd/Makefile#43c6afee</link>
        <description>samples: show race-free pidfd metadata accessThis is a sample program showing userspace how to get race-free accessto process metadata from a pidfd.  It is rather easy to do and userspacecan actually simply reuse code that currently parses a process&apos;s statusfile in procfs.The program can easily be extended into a generic helper suitable forinclusion in a libc to make it even easier for userspace to gain metadataaccess.Since this came up in a discussion because this API is going to be usedin various service managers: A lot of programs will have a whitelistseccomp filter that returns &lt;some-errno&gt; for all new syscalls.  Thismeans that programs might get confused if CLONE_PIDFD works but thelater pidfd_send_signal() syscall doesn&apos;t.  Hence, here&apos;s a ahead oftime check that pidfd_send_signal() is supported:bool pidfd_send_signal_supported(){        int procfd = open(&quot;/proc/self&quot;, O_DIRECTORY | O_RDONLY | O_CLOEXEC);        if (procfd &lt; 0)                return false;        /*         * A process is always allowed to signal itself so         * pidfd_send_signal() should never fail this test. If it does         * it must mean it is not available, blocked by an LSM, seccomp,         * or other.         */        return pidfd_send_signal(procfd, 0, NULL, 0) == 0;}Signed-off-by: Christian Brauner &lt;christian@brauner.io&gt;Co-developed-by: Jann Horn &lt;jannh@google.com&gt;Signed-off-by: Jann Horn &lt;jannh@google.com&gt;Reviewed-by: Oleg Nesterov &lt;oleg@redhat.com&gt;Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;Cc: &quot;Eric W. Biederman&quot; &lt;ebiederm@xmission.com&gt;Cc: Kees Cook &lt;keescook@chromium.org&gt;Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;Cc: David Howells &lt;dhowells@redhat.com&gt;Cc: &quot;Michael Kerrisk (man-pages)&quot; &lt;mtk.manpages@gmail.com&gt;Cc: Andy Lutomirsky &lt;luto@kernel.org&gt;Cc: Andrew Morton &lt;akpm@linux-foundation.org&gt;Cc: Aleksa Sarai &lt;cyphar@cyphar.com&gt;Cc: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;

            List of files:
            /linux-6.15/samples/pidfd/Makefile</description>
        <pubDate>Sun, 07 Apr 2019 19:18:11 +0000</pubDate>
        <dc:creator>Christian Brauner &lt;christian@brauner.io&gt;</dc:creator>
    </item>
</channel>
</rss>
