linux-modules.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] testsuite: remove .gitignore files when populating rootfs
@ 2015-03-05 16:06 Caio Marcelo de Oliveira Filho
  2015-03-05 16:06 ` [PATCH 2/3] testsuite: update README Caio Marcelo de Oliveira Filho
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Caio Marcelo de Oliveira Filho @ 2015-03-05 16:06 UTC (permalink / raw)
  To: linux-modules

Usually this file is added to keep a directory existing in the
repository but without any real content. In rootfs this can be
problematic if a directory will have all its files inspected. This
happens for kmod_module_get_holders().

Side-note: the 'test-loaded.c' is hit by this problem but doesn't
"notice" because the invalid module returned by get_holders() is not
checked. The modules in its loop are only used to get the name and
generate an output, and NULL was a valid value to generate the name.
---
 Makefile.am | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Makefile.am b/Makefile.am
index 896ae63..d9da17d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -216,6 +216,7 @@ ROOTFS_PRISTINE = $(top_srcdir)/testsuite/rootfs-pristine
 CREATE_ROOTFS = $(AM_V_GEN) ( $(RM) -rf $(ROOTFS) && mkdir -p $(dir $(ROOTFS)) && \
 				cp -r $(ROOTFS_PRISTINE) $(ROOTFS) && \
 				find $(ROOTFS) -type d -exec chmod +w {} \; && \
+				find $(ROOTFS) -type f -name .gitignore -exec rm -f {} \; && \
 				$(top_srcdir)/testsuite/populate-modules.sh \
 					$(MODULE_PLAYGROUND) $(ROOTFS) ) && \
 				touch testsuite/stamp-rootfs
-- 
2.3.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-03-07 13:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-05 16:06 [PATCH 1/3] testsuite: remove .gitignore files when populating rootfs Caio Marcelo de Oliveira Filho
2015-03-05 16:06 ` [PATCH 2/3] testsuite: update README Caio Marcelo de Oliveira Filho
2015-03-05 16:06 ` [PATCH 3/3] tools: add basic versions of insert and remove Caio Marcelo de Oliveira Filho
2015-03-06  3:23   ` Lucas De Marchi
2015-03-07 13:39     ` Caio Marcelo de Oliveira Filho
2015-03-06  3:24 ` [PATCH 1/3] testsuite: remove .gitignore files when populating rootfs Lucas De Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).