* [PATCH] fs-perms.txt: Don't tinker with file modes in /usr/src/debug
@ 2013-05-02 13:55 Phil Blundell
2013-05-02 14:07 ` Mark Hatle
0 siblings, 1 reply; 2+ messages in thread
From: Phil Blundell @ 2013-05-02 13:55 UTC (permalink / raw)
To: oe-core
Since 6775feb9fe935ab01fd9cae2b2d3fce5824a9a72 our local "copy" of the
debug sources has in fact been hardlinked to ${S} and potentially other
places too. This means that any modifications we make to these files
might have wider consequences than intended.
Avoid this potential pitfall by telling fixup_perms() to leave the file
modes in this directory alone. No great harm will result from shipping
debug sources with a mode other than 0644: if the mode was permissive
enough for us to compile the sources in the first place then it must
also be permissive enough for subsequent debugging.
Signed-off-by: Phil Blundell <philb@gnu.org>
---
meta/files/fs-perms.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/files/fs-perms.txt b/meta/files/fs-perms.txt
index ef44e26..becb85c 100644
--- a/meta/files/fs-perms.txt
+++ b/meta/files/fs-perms.txt
@@ -41,7 +41,7 @@ ${includedir} 0755 root root true 0644 root root
${oldincludedir} 0755 root root true 0644 root root
# Cleanup debug src
-/usr/src/debug 0755 root root true 0644 root root
+/usr/src/debug 0755 root root true - root root
# Items from base-files
# Links
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fs-perms.txt: Don't tinker with file modes in /usr/src/debug
2013-05-02 13:55 [PATCH] fs-perms.txt: Don't tinker with file modes in /usr/src/debug Phil Blundell
@ 2013-05-02 14:07 ` Mark Hatle
0 siblings, 0 replies; 2+ messages in thread
From: Mark Hatle @ 2013-05-02 14:07 UTC (permalink / raw)
To: openembedded-core
On 5/2/13 8:55 AM, Phil Blundell wrote:
> Since 6775feb9fe935ab01fd9cae2b2d3fce5824a9a72 our local "copy" of the
> debug sources has in fact been hardlinked to ${S} and potentially other
> places too. This means that any modifications we make to these files
> might have wider consequences than intended.
>
> Avoid this potential pitfall by telling fixup_perms() to leave the file
> modes in this directory alone. No great harm will result from shipping
> debug sources with a mode other than 0644: if the mode was permissive
> enough for us to compile the sources in the first place then it must
> also be permissive enough for subsequent debugging.
I'm fine with this as long as the uid/gid is set to root. (it is below)
Acked-by: Mark Hatle <mark.hatle@windriver.com>
> Signed-off-by: Phil Blundell <philb@gnu.org>
> ---
> meta/files/fs-perms.txt | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/files/fs-perms.txt b/meta/files/fs-perms.txt
> index ef44e26..becb85c 100644
> --- a/meta/files/fs-perms.txt
> +++ b/meta/files/fs-perms.txt
> @@ -41,7 +41,7 @@ ${includedir} 0755 root root true 0644 root root
> ${oldincludedir} 0755 root root true 0644 root root
>
> # Cleanup debug src
> -/usr/src/debug 0755 root root true 0644 root root
> +/usr/src/debug 0755 root root true - root root
>
> # Items from base-files
> # Links
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-02 14:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-02 13:55 [PATCH] fs-perms.txt: Don't tinker with file modes in /usr/src/debug Phil Blundell
2013-05-02 14:07 ` Mark Hatle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox