summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-March/012899.html
blob: 97f2a38d2a706ac8864f3c4cfa02807c29361955 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
 <HEAD>
   <TITLE> [Mageia-dev] executable libraries
   </TITLE>
   <LINK REL="Index" HREF="index.html" >
   <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20executable%20libraries&In-Reply-To=%3CCA%2B0WU1ROv7RfoxCC1WcF4KxE-rmtrBpiC8j6i%3D7B%3Dao%3D%3DPLvHg%40mail.gmail.com%3E">
   <META NAME="robots" CONTENT="index,nofollow">
   <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
   <LINK REL="Previous"  HREF="012550.html">
   <LINK REL="Next"  HREF="012520.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[Mageia-dev] executable libraries</H1>
    <B>Per &#216;yvind Karlsen</B> 
    <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20executable%20libraries&In-Reply-To=%3CCA%2B0WU1ROv7RfoxCC1WcF4KxE-rmtrBpiC8j6i%3D7B%3Dao%3D%3DPLvHg%40mail.gmail.com%3E"
       TITLE="[Mageia-dev] executable libraries">peroyvind at mandriva.org
       </A><BR>
    <I>Sat Mar 10 22:29:50 CET 2012</I>
    <P><UL>
        <LI>Previous message: <A HREF="012550.html">[Mageia-dev] executable libraries
</A></li>
        <LI>Next message: <A HREF="012520.html">[Mageia-dev] executable libraries
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#12899">[ date ]</a>
              <a href="thread.html#12899">[ thread ]</a>
              <a href="subject.html#12899">[ subject ]</a>
              <a href="author.html#12899">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Den 13:45 3. mars 2012 skrev Guillaume Rousse
&lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">guillomovitch at gmail.com</A>&gt; f&#248;lgende:
&gt;<i> Le 02/03/2012 22:01, Per &#216;yvind Karlsen a &#233;crit :
</I>&gt;<i>
</I>&gt;&gt;<i> Den 21:51 2. mars 2012 skrev Maarten Vanraes&lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">alien at rmail.be</A>&gt; &#160;f&#248;lgende:
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> Op vrijdag 02 maart 2012 21:29:05 schreef Anssi Hannula:
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> 02.03.2012 21:57, Maarten Vanraes kirjoitti:
</I>&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;<i> Op vrijdag 02 maart 2012 15:22:23 schreef Anssi Hannula:
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> 02.03.2012 00:17, Maarten Vanraes kirjoitti:
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> Op donderdag 01 maart 2012 23:05:35 schreef Anssi Hannula:
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> [...]
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> does this mean debug info fails for these?
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> I'm not immediately sure (I never remember how the debug/stripping
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> stuff works exactly), but I think either a) debug symbols extraction
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> and thus -debug packaging, b) stripping, or c) both will fail with
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> non-executable shared libs.
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> in that case i guess we would need a policy or bs check to make sure
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> we
</I>&gt;&gt;&gt;&gt;&gt;&gt;&gt;<i> don't fail some libraries debug and strip
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> Possibly.
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> Interestingly, Debian policy disallows executable permission on shared
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> libs:
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> <A HREF="http://www.debian.org/doc/debian-policy/ch-sharedlibs.html#s-sharedlibs-">http://www.debian.org/doc/debian-policy/ch-sharedlibs.html#s-sharedlibs-</A>
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> ru ntime
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> &quot;Shared libraries should not be installed executable, since the
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> dynamic
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> linker does not require this and trying to execute a shared library
</I>&gt;&gt;&gt;&gt;&gt;&gt;<i> usually results in a core dump.&quot;
</I>&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;<i> which is sort of strange, since libc is actually executable by design.
</I>&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;<i> i see where they are coming from
</I>&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;<i> but i guess the first part of this is, why is there a find with
</I>&gt;&gt;&gt;&gt;&gt;<i> executable restrictions for the code relating to stripped binaries and
</I>&gt;&gt;&gt;&gt;&gt;<i> debug?
</I>&gt;&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;&gt;<i> is it because it's also used for real executables?
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;&gt;<i> I guess it is there just to speed up the process, otherwise it would
</I>&gt;&gt;&gt;&gt;<i> have to run 'file' for every file in the package (and many packages have
</I>&gt;&gt;&gt;&gt;<i> lots of files).
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> still, it seems kind of weird, there are rpmlint checks for unstripped
</I>&gt;&gt;&gt;<i> libraries, but i do have 34 libraries not marked as executable, while the
</I>&gt;&gt;&gt;<i> stripping+ debug seems to target only executables?
</I>&gt;&gt;&gt;<i>
</I>&gt;&gt;&gt;<i> i wonder if we should make another check library unset as executable or
</I>&gt;&gt;&gt;<i> even
</I>&gt;&gt;&gt;<i> check what happened with these libraries not marked as executable?
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> I posted a link to a rpmlint patch implementing such a check to this
</I>&gt;&gt;<i> thread two
</I>&gt;&gt;<i> hours ago.. :p
</I>&gt;<i>
</I>&gt;<i> I don't much point to a check, when a rpm-helper scriptlet would be able to
</I>&gt;<i> automatically enforce any given permission set.
</I>I eventually reached that conclusion as well, especially as I ran into
same issues with mono
libraries as well..

I've just pushed a new spec-helper to cooker with the following script:
<A HREF="http://svn.mandriva.com/viewvc/soft/rpm/spec-helper/trunk/fix_file_permissions?view=markup">http://svn.mandriva.com/viewvc/soft/rpm/spec-helper/trunk/fix_file_permissions?view=markup</A>

--
Regards,
Per &#216;yvind
</PRE>

<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="012550.html">[Mageia-dev] executable libraries
</A></li>
	<LI>Next message: <A HREF="012520.html">[Mageia-dev] executable libraries
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#12899">[ date ]</a>
              <a href="thread.html#12899">[ thread ]</a>
              <a href="subject.html#12899">[ subject ]</a>
              <a href="author.html#12899">[ author ]</a>
         </LI>
       </UL>

<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>