All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fbarray: make all fbarrays hidden files
@ 2018-04-23 11:14 Anatoly Burakov
  2018-04-23 12:48 ` Bruce Richardson
  0 siblings, 1 reply; 4+ messages in thread
From: Anatoly Burakov @ 2018-04-23 11:14 UTC (permalink / raw)
  To: dev; +Cc: bruce.richardson

fbarray stores its data in a shared file, which is not hidden.
This leads to polluting user's HOME directory with visible
files when running DPDK as non-root. Change fbarray to always
create hidden files by default.

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
---

Notes:
    Is /tmp always user-accessible? Maybe not use home
    directory at all?

 lib/librte_eal/common/eal_filesystem.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/librte_eal/common/eal_filesystem.h b/lib/librte_eal/common/eal_filesystem.h
index ad059ef..fe4c455 100644
--- a/lib/librte_eal/common/eal_filesystem.h
+++ b/lib/librte_eal/common/eal_filesystem.h
@@ -13,7 +13,7 @@
 
 /** Path of rte config file. */
 #define RUNTIME_CONFIG_FMT "%s/.%s_config"
-#define FBARRAY_FMT "%s/%s_%s"
+#define FBARRAY_FMT "%s/.%s_%s"
 
 #include <stdint.h>
 #include <limits.h>
-- 
2.7.4

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

* Re: [PATCH] fbarray: make all fbarrays hidden files
  2018-04-23 11:14 [PATCH] fbarray: make all fbarrays hidden files Anatoly Burakov
@ 2018-04-23 12:48 ` Bruce Richardson
  2018-04-23 13:47   ` Burakov, Anatoly
  0 siblings, 1 reply; 4+ messages in thread
From: Bruce Richardson @ 2018-04-23 12:48 UTC (permalink / raw)
  To: Anatoly Burakov; +Cc: dev

On Mon, Apr 23, 2018 at 12:14:13PM +0100, Anatoly Burakov wrote:
> fbarray stores its data in a shared file, which is not hidden.
> This leads to polluting user's HOME directory with visible
> files when running DPDK as non-root. Change fbarray to always
> create hidden files by default.
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
> ---
> 
> Notes:
>     Is /tmp always user-accessible? Maybe not use home
>     directory at all?
> 
Good change.

Acked-by: Bruce Richardson <bruce.richardson@intel.com>

A further improvement would to put the files as not-hidden but inside a
hidden subdirectory e.g. ".dpdk"

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

* Re: [PATCH] fbarray: make all fbarrays hidden files
  2018-04-23 12:48 ` Bruce Richardson
@ 2018-04-23 13:47   ` Burakov, Anatoly
  2018-04-23 19:56     ` Thomas Monjalon
  0 siblings, 1 reply; 4+ messages in thread
From: Burakov, Anatoly @ 2018-04-23 13:47 UTC (permalink / raw)
  To: Bruce Richardson; +Cc: dev

On 23-Apr-18 1:48 PM, Bruce Richardson wrote:
> On Mon, Apr 23, 2018 at 12:14:13PM +0100, Anatoly Burakov wrote:
>> fbarray stores its data in a shared file, which is not hidden.
>> This leads to polluting user's HOME directory with visible
>> files when running DPDK as non-root. Change fbarray to always
>> create hidden files by default.
>>
>> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
>> ---
>>
>> Notes:
>>      Is /tmp always user-accessible? Maybe not use home
>>      directory at all?
>>
> Good change.
> 
> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
> 
> A further improvement would to put the files as not-hidden but inside a
> hidden subdirectory e.g. ".dpdk"
> 

Good suggestions, I'll work on this.

-- 
Thanks,
Anatoly

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

* Re: [PATCH] fbarray: make all fbarrays hidden files
  2018-04-23 13:47   ` Burakov, Anatoly
@ 2018-04-23 19:56     ` Thomas Monjalon
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Monjalon @ 2018-04-23 19:56 UTC (permalink / raw)
  To: Burakov, Anatoly; +Cc: dev, Bruce Richardson

23/04/2018 15:47, Burakov, Anatoly:
> On 23-Apr-18 1:48 PM, Bruce Richardson wrote:
> > On Mon, Apr 23, 2018 at 12:14:13PM +0100, Anatoly Burakov wrote:
> >> fbarray stores its data in a shared file, which is not hidden.
> >> This leads to polluting user's HOME directory with visible
> >> files when running DPDK as non-root. Change fbarray to always
> >> create hidden files by default.
> >>
> >> Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
> >> ---
> >>
> >> Notes:
> >>      Is /tmp always user-accessible? Maybe not use home
> >>      directory at all?
> >>
> > Good change.
> > 
> > Acked-by: Bruce Richardson <bruce.richardson@intel.com>

Applied, thanks


> > A further improvement would to put the files as not-hidden but inside a
> > hidden subdirectory e.g. ".dpdk"
> 
> Good suggestions, I'll work on this.

There are other places where we create file.
Please try to move all in the same place.

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

end of thread, other threads:[~2018-04-23 19:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-23 11:14 [PATCH] fbarray: make all fbarrays hidden files Anatoly Burakov
2018-04-23 12:48 ` Bruce Richardson
2018-04-23 13:47   ` Burakov, Anatoly
2018-04-23 19:56     ` Thomas Monjalon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.