Paolo Bonzini | 18 Sep 14:25 2014
Picon

euidaccess/faccessat vs. ACLs

Hi,

the euidaccess and faccessat(AT_EACCESS) functions are emulated in glibc
and only look at the file's uid/gid.  They do not take ACLs into
account, and this can cause subtle bugs.  This should be noted in the
BUGS section.

Also, the AT_SYMLINK_NOFOLLOW flag to faccessat currently will not work
if specified alone, because Linux does not have an laccess() system
call.  It works if specified together with AT_EACCESS, modulo the above
ACL bug of course.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html

bugzilla | 17 Sep 02:15 2014

[Bug 84701] New: execve(2) manual page ".sh" usage exposes implementation detail

https://bugzilla.kernel.org/show_bug.cgi?id=84701

            Bug ID: 84701
           Summary: execve(2) manual page ".sh" usage exposes
                    implementation detail
           Product: Documentation
           Version: unspecified
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: man-pages
          Assignee: documentation_man-pages@...
          Reporter: erlkonig@...
        Regression: No

This content:

       We can also use these programs to  demonstrate  the  use  of  a  script
       interpreter.   To do this we create a script whose "interpreter" is our
       myecho program:

           $ cat > script.sh
           #! ./myecho script-arg
           ^D
           $ chmod +x script.sh

       We can then use our program to exec the script:

(Continue reading)

Marko Myllynen | 15 Sep 11:32 2014
Picon

Thread-safety of iconv()

Hi Michael, Haitao,

iconv(3) states:

ATTRIBUTES
   Multithreading (see pthreads(7))
       The iconv() function is thread-safe.

But iconv_open(3) says:

A conversion descriptor contains a conversion  state.   After  creation
using iconv_open(), the state is in the initial state.  Using iconv(3)
modifies the descriptor's conversion state.  (This implies that a  con-
version descriptor can not be used in multiple threads simultaneously.)
To bring the state back to the initial state, use iconv(3) with NULL as
inbuf argument.

This looks a bit unclear, do you think you could clarify iconv(3) and/or
iconv_open(3) a bit in thread-safety regard?

Thanks,

--

-- 
Marko Myllynen
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html

(Continue reading)

Peng Haitao | 15 Sep 05:57 2014

[PATCH] getpwnam.3: ffix

Signed-off-by: Peng Haitao <penght@...>
---
 man3/fenv.3     | 2 +-
 man3/getpwnam.3 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/man3/fenv.3 b/man3/fenv.3
index 6884202..6db7c86 100644
--- a/man3/fenv.3
+++ b/man3/fenv.3
 <at>  <at>  -270,7 +270,7  <at>  <at>  For an explanation of the terms used in this section, see
 .TS
 allbox;
 lb lb lb
-lw38 l l.
+lw37 l l.
 Interface	Attribute	Value
 T{
 .BR feclearexcept (),
diff --git a/man3/getpwnam.3 b/man3/getpwnam.3
index f14a637..512ca9e 100644
--- a/man3/getpwnam.3
+++ b/man3/getpwnam.3
 <at>  <at>  -219,7 +219,7  <at>  <at>  For an explanation of the terms used in this section, see
 .BR attributes (7).
 .TS
 allbox;
-lbw22 lb lb
+lbw26 lb lb
 l l l.
(Continue reading)

Peng Haitao | 15 Sep 05:51 2014

[PATCH] getcontext.3: tfix

Signed-off-by: Peng Haitao <penght@...>
---
 man3/getcontext.3 | 1 -
 1 file changed, 1 deletion(-)

diff --git a/man3/getcontext.3 b/man3/getcontext.3
index d592a83..8e35238 100644
--- a/man3/getcontext.3
+++ b/man3/getcontext.3
 <at>  <at>  -151,7 +151,6  <at>  <at>  appropriately.
 .SH ERRORS
 None defined.
 .SH ATTRIBUTES
-.SS Multithreading (see pthreads(7))
 For an explanation of the terms used in this section, see
 .BR attributes (7).
 .TS
--

-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo@...
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Peng Haitao | 15 Sep 05:29 2014

[PATCH] pthread_attr_setstackaddr.3: Reformat thread-safety information

Signed-off-by: Peng Haitao <penght@...>
---
 man3/pthread_attr_setstackaddr.3 | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/man3/pthread_attr_setstackaddr.3 b/man3/pthread_attr_setstackaddr.3
index bf1a32f..23ab2c9 100644
--- a/man3/pthread_attr_setstackaddr.3
+++ b/man3/pthread_attr_setstackaddr.3
 <at>  <at>  -81,12 +81,18  <at>  <at>  handle a possible error return).
 .SH VERSIONS
 These functions are provided by glibc since version 2.1.
 .SH ATTRIBUTES
-.SS Multithreading (see pthreads(7))
-The
-.BR pthread_attr_setstackaddr ()
-and
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lbw28 lb lb
+l l l.
+Interface	Attribute	Value
+T{
+.BR pthread_attr_setstackaddr (),
 .BR pthread_attr_getstackaddr ()
-functions are thread-safe.
+T}	Thread safety	MT-Safe
+.TE
(Continue reading)

Peng Haitao | 15 Sep 05:25 2014

[PATCH] pthread_attr_setstacksize.3: Reformat thread-safety information

Signed-off-by: Peng Haitao <penght@...>
---
 man3/pthread_attr_setstacksize.3 | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/man3/pthread_attr_setstacksize.3 b/man3/pthread_attr_setstacksize.3
index a0ee3d6..86c9987 100644
--- a/man3/pthread_attr_setstacksize.3
+++ b/man3/pthread_attr_setstacksize.3
 <at>  <at>  -81,12 +81,18  <at>  <at>  is not a multiple of the system page size.
 .SH VERSIONS
 These functions are provided by glibc since version 2.1.
 .SH ATTRIBUTES
-.SS Multithreading (see pthreads(7))
-The
-.BR pthread_attr_setstacksize ()
-and
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lbw28 lb lb
+l l l.
+Interface	Attribute	Value
+T{
+.BR pthread_attr_setstacksize (),
 .BR pthread_attr_getstacksize ()
-functions are thread-safe.
+T}	Thread safety	MT-Safe
+.TE
(Continue reading)

Peng Haitao | 15 Sep 05:20 2014

[PATCH] pthread_equal.3: Reformat thread-safety information

Signed-off-by: Peng Haitao <penght@...>
---
 man3/pthread_equal.3 | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/man3/pthread_equal.3 b/man3/pthread_equal.3
index 0cd3495..9d72fe7 100644
--- a/man3/pthread_equal.3
+++ b/man3/pthread_equal.3
 <at>  <at>  -45,10 +45,17  <at>  <at>  returns a nonzero value; otherwise, it returns 0.
 .SH ERRORS
 This function always succeeds.
 .SH ATTRIBUTES
-.SS Multithreading (see pthreads(7))
-The
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lb lb lb
+l l l.
+Interface	Attribute	Value
+T{
 .BR pthread_equal ()
-function is thread-safe.
+T}	Thread safety	MT-Safe
+.TE
 .SH CONFORMING TO
 POSIX.1-2001.
 .SH NOTES
(Continue reading)

Peng Haitao | 15 Sep 05:15 2014

[PATCH] pthread_exit.3: Reformat thread-safety information

Signed-off-by: Peng Haitao <penght@...>
---
 man3/pthread_exit.3 | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/man3/pthread_exit.3 b/man3/pthread_exit.3
index 12b23c2..899d6a3 100644
--- a/man3/pthread_exit.3
+++ b/man3/pthread_exit.3
 <at>  <at>  -73,10 +73,17  <at>  <at>  This function does not return to the caller.
 .SH ERRORS
 This function always succeeds.
 .SH ATTRIBUTES
-.SS Multithreading (see pthreads(7))
-The
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lb lb lb
+l l l.
+Interface	Attribute	Value
+T{
 .BR pthread_exit ()
-function is thread-safe.
+T}	Thread safety	MT-Safe
+.TE
 .SH CONFORMING TO
 POSIX.1-2001.
 .SH NOTES
(Continue reading)

Peng Haitao | 15 Sep 05:12 2014

[PATCH] pthread_getcpuclockid.3: Reformat thread-safety information

Signed-off-by: Peng Haitao <penght@...>
---
 man3/pthread_getcpuclockid.3 | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/man3/pthread_getcpuclockid.3 b/man3/pthread_getcpuclockid.3
index 9f31331..405b434 100644
--- a/man3/pthread_getcpuclockid.3
+++ b/man3/pthread_getcpuclockid.3
 <at>  <at>  -63,10 +63,17  <at>  <at>  could be found.
 .SH VERSIONS
 This function is available in glibc since version 2.2.
 .SH ATTRIBUTES
-.SS Multithreading (see pthreads(7))
-The
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lbw23 lb lb
+l l l.
+Interface	Attribute	Value
+T{
 .BR pthread_getcpuclockid ()
-function is thread-safe.
+T}	Thread safety	MT-Safe
+.TE
 .SH CONFORMING TO
 POSIX.1-2001.
 .SH NOTES
(Continue reading)

Peng Haitao | 15 Sep 04:59 2014

[PATCH] pthread_kill.3: Reformat thread-safety information

Signed-off-by: Peng Haitao <penght@...>
---
 man3/pthread_kill.3 | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/man3/pthread_kill.3 b/man3/pthread_kill.3
index 5c1d0c4..f323898 100644
--- a/man3/pthread_kill.3
+++ b/man3/pthread_kill.3
 <at>  <at>  -70,10 +70,17  <at>  <at>  on error, it returns an error number, and no signal is sent.
 .B EINVAL
 An invalid signal was specified.
 .SH ATTRIBUTES
-.SS Multithreading (see pthreads(7))
-The
+For an explanation of the terms used in this section, see
+.BR attributes (7).
+.TS
+allbox;
+lb lb lb
+l l l.
+Interface	Attribute	Value
+T{
 .BR pthread_kill ()
-function is thread-safe.
+T}	Thread safety	MT-Safe
+.TE
 .SH CONFORMING TO
 POSIX.1-2008.
 .SH NOTES
(Continue reading)


Gmane