Latest policycoreutils patch
For some reason this did not go out last week.
More translations.
Change all python to use /usr/bin/python -E, to make it a little bit harder to muck with.
Have newrole ignore sigpipe so it gives correct error message when flooded with 4000 character security context.
Add -i qualifier to restorecon to tell it to ignore files that do not exist. This fixes a problem in fixfiles -R rpmlint restore
Which could hand restorecon files that do not exists and restorecon prints ugly warnings.
restorecond init script description needs line continuation marks to make system-config-services happy.
Quoted 4 lines · Daniel J Walsh
For some reason this did not go out last week.
More translations.
Can you send these as separate patches in the future - it would make the review easier.
Quoted 11 lines
Change all python to use
/usr/bin/python-E, to make it a little bit harder to muck with.Have newrole ignore sigpipe so it gives correct error message when flooded with 4000 character security context.
Add -i qualifier to restorecon to tell it to ignore files that do not exist. This fixes a problem in
fixfiles -R rpmlint restore
Quoted 6 lines
Which could hand restorecon files that do not exists and restorecon prints ugly warnings.
restorecond init script description needs line continuation marks to make system-config-services happy.
Acked-by Karl MacMillan <[email protected]>
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 11 lines · Daniel J Walsh
For some reason this did not go out last week.
More translations.
Change all python to use
/usr/bin/python-E, to make it a little bit harder to muck with.Have newrole ignore sigpipe so it gives correct error message when flooded with 4000 character security context.
Add -i qualifier to restorecon to tell it to ignore files that do not exist. This fixes a problem in fixfiles -R rpmlint restore
I'm not sure about this. Most other commands don't have a feature like this (if they do its generally -f anyway, like rm -f ) and it seems like fixfiles should be interpreting the error correctly instead of ripping the error passing out of restorecon.
Quoted 2 lines
Which could hand restorecon files that do not exists and restorecon prints ugly warnings.
why not a -q then? I think it should still return a proper error code but it doesn't have to spam the console
Quoted 2 lines
restorecond init script description needs line continuation marks to make system-config-services happy.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 2 lines · Daniel J Walsh
Have newrole ignore sigpipe so it gives correct error message when flooded with 4000 character security context.
I'm a little unclear on this one, although I did find a bug report about it (which would be helpful to identify in the patch posting in the future when it applies for easy reference), at
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=203801
If I read that one correctly, the SIGPIPE is actually happening when libselinux tries to write the context to the setrans socket, because the daemon is dropping the connection immediately upon getting the header with such a large length (more generally, any failure in the daemon before reading the entire request could lead to this). So that could affect any user of libselinux, not just newrole, right?
Looking around a bit, I see that if we changed the use of writev() in libselinux to instead use sendmsg() with an explicit MSG_NOSIGNAL flag, we could avoid having such failures generate SIGPIPE altogether. Then we would just get an error return and have the usual fallback handling.
Quoted 11 lines
Add -i qualifier to restorecon to tell it to ignore files that do not exist. This fixes a problem in
fixfiles -R rpmlint restoreWhich could hand restorecon files that do not exists and restorecon prints ugly warnings.
restorecond init script description needs line continuation marks to make system-config-services happy.
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 11 lines · Joshua Brindle
Quoted 10 lines · Daniel J Walsh
For some reason this did not go out last week.
More translations.
Change all python to use
/usr/bin/python-E, to make it a little bit harder to muck with.Have newrole ignore sigpipe so it gives correct error message when flooded with 4000 character security context.
Quoted 8 lines
Quoted 4 lines
Add -i qualifier to restorecon to tell it to ignore files that do not exist. This fixes a problem in
fixfiles -R rpmlint restoreI'm not sure about this. Most other commands don't have a feature like this (if they do its generally -f anyway, like rm -f ) and it seems like fixfiles should be interpreting the error correctly instead of ripping the error passing out of restorecon.
I don't think the feature is objectionable. It is directly analogous to 'rm -f' though (both continue without the flag but change the error reporting), so changing the flag to -f is fine with me.
Quoted 5 lines
Quoted 3 lines
Which could hand restorecon files that do not exists and restorecon prints ugly warnings.
why not a -q then? I think it should still return a proper error code but it doesn't have to spam the
I think that the meaning of the flag is to change whether or not a nonexistent file is an error - which is a valid semantic that makes scripting easier. So not returning an error code or printing a warning makes sense (which also matches the 'rm -f' behavior).
Karl
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 17 lines · Stephen Smalley
Quoted 2 lines · Daniel J Walsh
Have newrole ignore sigpipe so it gives correct error message when flooded with 4000 character security context.
I'm a little unclear on this one, although I did find a bug report about it (which would be helpful to identify in the patch posting in the future when it applies for easy reference), at
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=203801If I read that one correctly, the SIGPIPE is actually happening when libselinux tries to write the context to the setrans socket, because the daemon is dropping the connection immediately upon getting the header with such a large length (more generally, any failure in the daemon before reading the entire request could lead to this). So that could affect any user of libselinux, not just newrole, right?
Quoted 5 lines
Looking around a bit, I see that if we changed the use of
writev()in libselinux to instead usesendmsg()with an explicitMSG_NOSIGNALflag, we could avoid having such failures generate SIGPIPE altogether. Then we would just get an error return and have the usual fallback handling.
That sounds like a better solution.
Quoted 10 lines
Quoted 10 lines
Add -i qualifier to restorecon to tell it to ignore files that do not exist. This fixes a problem in fixfiles -R rpmlint restore
Which could hand restorecon files that do not exists and restorecon prints ugly warnings.
restorecond init script description needs line continuation marks to make system-config-services happy.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 19 lines · Daniel J Walsh
Quoted 18 lines · Stephen Smalley
Quoted 3 lines · Daniel J Walsh
Have newrole ignore sigpipe so it gives correct error message when flooded with 4000 character security context.
I'm a little unclear on this one, although I did find a bug report about it (which would be helpful to identify in the patch posting in the future when it applies for easy reference), at
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=203801If I read that one correctly, the SIGPIPE is actually happening when libselinux tries to write the context to the setrans socket, because the daemon is dropping the connection immediately upon getting the header with such a large length (more generally, any failure in the daemon before reading the entire request could lead to this). So that could affect any user of libselinux, not just newrole, right?
Quoted 6 lines
Quoted 5 lines
Looking around a bit, I see that if we changed the use of
writev()in libselinux to instead usesendmsg()with an explicitMSG_NOSIGNALflag, we could avoid having such failures generate SIGPIPE altogether. Then we would just get an error return and have the usual fallback handling.That sounds like a better solution.
Possible patch below. Changes:
1) Collect up the entire request into a single msg and send it once.
2) Use sendmsg with MSG_NOSIGNAL rather than writev.
Can anyone explain what data2 is for? It is always NULL at present AFAICS.
Index: libselinux/src/setrans_client.c
===================================================================
RCS file: /nfshome/pal/CVS/selinux-usr/libselinux/src/setrans_client.c,v retrieving revision 1.8
src/setrans_client.c +23 -23
@@ -58,11 +58,12 @@ static int setransd_open(void)static int send_request (int fd,uint32_t function,const char *data1,const char *data2) { -struct iovec req_hdr[3 ]; +struct msghdr msgh; +struct iovec iov[5 ];uint32_t data1_size;uint32_t data2_size; -struct iovec req_data[2 ]; -ssize_t count; +ssize_t count, expected; +unsigned int i;if (fd <0 )return -1 ;
@@ -75,28 +76,27 @@ send_request(int fd, uint32_t function, data1_size =strlen (data1) +1 ; data2_size =strlen (data2) +1 ; - req_hdr[0 ].iov_base = &function; - req_hdr[0 ].iov_len =sizeof (function); - req_hdr[1 ].iov_base = &data1_size; - req_hdr[1 ].iov_len =sizeof (data1_size); - req_hdr[2 ].iov_base = &data2_size; - req_hdr[2 ].iov_len =sizeof (data2_size); - -while (((count =writev (fd, req_hdr,3 )) <0 ) && (errno ==EINTR )) ; -if (count != (sizeof (function) +sizeof (data1_size) + -sizeof (data2_size))) { -return -1 ; - } + iov[0 ].iov_base = &function; + iov[0 ].iov_len =sizeof (function); + iov[1 ].iov_base = &data1_size; + iov[1 ].iov_len =sizeof (data1_size); + iov[2 ].iov_base = &data2_size; + iov[2 ].iov_len =sizeof (data2_size); + iov[3 ].iov_base = (char *)data1; + iov[3 ].iov_len = data1_size; + iov[4 ].iov_base = (char *)data2; + iov[4 ].iov_len = data2_size; +memset (&msgh,0 ,sizeof (msgh)); + msgh.msg_iov = iov; + msgh.msg_iovlen =sizeof (iov)/sizeof (iov[0 ]); + + expected =0 ; +for (i =0 ; i <sizeof (iov)/sizeof (iov[0 ]); i++) + expected += iov[i].iov_len; - req_data[0 ].iov_base = (char *)data1; - req_data[0 ].iov_len = data1_size; - req_data[1 ].iov_base = (char *)data2; - req_data[1 ].iov_len = data2_size; - -while (((count =writev (fd, req_data,2 )) <0 ) && (errno ==EINTR )) ; -if (count <0 || (uint32_t ) count != (data1_size + data2_size)) { +while (((count =sendmsg (fd, &msgh,MSG_NOSIGNAL )) <0 ) && (errno ==EINTR )) ; +if (count <0 || count != expected)return -1 ; - }return 0 ; }
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Joshua Brindle
Acked-byQuoted 113 lines
From: Stephen Smalley [mailto:[email protected]]
Quoted 4 lines · Daniel J Walsh
Quoted 3 lines · Stephen Smalley
Quoted 1 line · Daniel J Walsh
Have newrole ignore sigpipe so it gives correct error
message when
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
flooded with 4000 character security context.
I'm a little unclear on this one, although I did find a
bug report
Quoted 1 line
Quoted 1 line
about it (which would be helpful to identify in the patch
posting in
Quoted 4 lines
Quoted 4 lines
the future when it applies for easy reference), at
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=203801If I read that one correctly, the SIGPIPE is actually
happening when
Quoted 1 line
Quoted 1 line
libselinux tries to write the context to the setrans
socket, because
Quoted 1 line
Quoted 1 line
the daemon is dropping the connection immediately upon
getting the
Quoted 1 line
Quoted 1 line
header with such a large length (more generally, any
failure in the
Quoted 4 lines
Quoted 4 lines
daemon before reading the entire request could lead to this). So that could affect any user of libselinux, not just newrole, right?
Looking around a bit, I see that if we changed the use of
writev()Quoted 1 line
Quoted 1 line
in libselinux to instead use
sendmsg()with an explicit
MSG_NOSIGNALQuoted 2 lines
Quoted 2 lines
flag, we could avoid having such failures generate SIGPIPE altogether. Then we would just get an error return and
have the usual fallback handling.
Quoted 2 lines
Quoted 1 line
That sounds like a better solution.
Possible patch below. Changes:
1) Collect up the entire request into a single msg and send it once.
2) Use sendmsg withMSG_NOSIGNALrather than writev.Can anyone explain what data2 is for? It is always NULL at present AFAICS.
Index:
libselinux/src/setrans_client.c
===================================================================
RCS file:
/nfshome/pal/CVS/selinux-usr/libselinux/src/setrans_client.c,v retrieving revision 1.8
diff -u -p -r1.8setrans_client.c
---libselinux/src/setrans_client.c29 Jun 2006 18:21:05
-0000 1.8
+++libselinux/src/setrans_client.c8 Sep 2006 20:18:07 -0000(quoted diff) +0
-0@@ -58,11 +58,12 @@ static int setransd_open(void) staticint
send_request(int fd, uint32_t function, const char *data1, const char *data2){src/setrans_client.c +21
-21-struct iovec req_hdr[3 ]; +struct msghdr msgh; +struct iovec iov[5 ];uint32_t data1_size;uint32_t data2_size; -struct iovec req_data[2 ]; -ssize_t count; +ssize_t count, expected; +unsigned int i;if (fd <0 )return -1 ;@@ -75,28 +76,27 @@ send_request(int fd, uint32_t function, data1_size =strlen (data1) +1 ; data2_size =strlen (data2) +1 ; - req_hdr[0 ].iov_base = &function; - req_hdr[0 ].iov_len =sizeof (function); - req_hdr[1 ].iov_base = &data1_size; - req_hdr[1 ].iov_len =sizeof (data1_size); - req_hdr[2 ].iov_base = &data2_size; - req_hdr[2 ].iov_len =sizeof (data2_size); - -while (((count =writev (fd, req_hdr,3 )) <0 ) && (errno == EINTR)) ; -if (count != (sizeof (function) +sizeof (data1_size) + -sizeof (data2_size))) { -return -1 ; - } + iov[0 ].iov_base = &function; + iov[0 ].iov_len =sizeof (function); + iov[1 ].iov_base = &data1_size; + iov[1 ].iov_len =sizeof (data1_size); + iov[2 ].iov_base = &data2_size; + iov[2 ].iov_len =sizeof (data2_size); + iov[3 ].iov_base = (char *)data1; + iov[3 ].iov_len = data1_size; + iov[4 ].iov_base = (char *)data2; + iov[4 ].iov_len = data2_size; +memset (&msgh,0 ,sizeof (msgh)); + msgh.msg_iov = iov; + msgh.msg_iovlen =sizeof (iov)/sizeof (iov[0 ]); + + expected =0 ; +for (i =0 ; i <sizeof (iov)/sizeof (iov[0 ]); i++) + expected += iov[i].iov_len; - req_data[0 ].iov_base = (char *)data1; - req_data[0 ].iov_len = data1_size; - req_data[1 ].iov_base = (char *)data2; - req_data[1 ].iov_len = data2_size; - -while (((count =writev (fd, req_data,2 )) <0 ) && (errno == EINTR)) ;
src/setrans_client.c send_request(int fd, uint32_t function, · line 102
Quoted 10 lines
src/setrans_client.c +2
-2-if (count <0 || (uint32_t ) count != (data1_size + data2_size)) { +while (((count =sendmsg (fd, &msgh,MSG_NOSIGNAL )) <0 ) && (errno ==EINTR )) ; +if (count <0 || count != expected)return -1 ; - }return 0 ; }
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Karl MacMillan
Acked-byQuoted 120 lines · Joshua Brindle
Quoted 120 lines
From: Stephen Smalley [mailto:[email protected]]
Quoted 4 lines · Daniel J Walsh
Quoted 3 lines · Stephen Smalley
Quoted 1 line · Daniel J Walsh
Have newrole ignore sigpipe so it gives correct error
message when
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines
flooded with 4000 character security context.
I'm a little unclear on this one, although I did find a
bug report
Quoted 1 line
Quoted 1 line
about it (which would be helpful to identify in the patch
posting in
Quoted 4 lines
Quoted 4 lines
the future when it applies for easy reference), at
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=203801If I read that one correctly, the SIGPIPE is actually
happening when
Quoted 1 line
Quoted 1 line
libselinux tries to write the context to the setrans
socket, because
Quoted 1 line
Quoted 1 line
the daemon is dropping the connection immediately upon
getting the
Quoted 1 line
Quoted 1 line
header with such a large length (more generally, any
failure in the
Quoted 4 lines
Quoted 4 lines
daemon before reading the entire request could lead to this). So that could affect any user of libselinux, not just newrole, right?
Looking around a bit, I see that if we changed the use of
writev()Quoted 1 line
Quoted 1 line
in libselinux to instead use
sendmsg()with an explicit
MSG_NOSIGNALQuoted 2 lines
Quoted 2 lines
flag, we could avoid having such failures generate SIGPIPE altogether. Then we would just get an error return and
have the usual fallback handling.
Quoted 2 lines
Quoted 1 line
That sounds like a better solution.
Possible patch below. Changes:
1) Collect up the entire request into a single msg and send it once.
2) Use sendmsg withMSG_NOSIGNALrather than writev.Can anyone explain what data2 is for? It is always NULL at present AFAICS.
Index:
libselinux/src/setrans_client.c
===================================================================
RCS file:
/nfshome/pal/CVS/selinux-usr/libselinux/src/setrans_client.c,v retrieving revision 1.8
diff -u -p -r1.8setrans_client.c
---libselinux/src/setrans_client.c29 Jun 2006 18:21:05
-0000 1.8
+++libselinux/src/setrans_client.c8 Sep 2006 20:18:07 -0000(quoted diff) +0
-0@@ -58,11 +58,12 @@ static int setransd_open(void) staticint
send_request(int fd, uint32_t function, const char *data1, const char *data2){src/setrans_client.c +23
-23-struct iovec req_hdr[3 ]; +struct msghdr msgh; +struct iovec iov[5 ];uint32_t data1_size;uint32_t data2_size; -struct iovec req_data[2 ]; -ssize_t count; +ssize_t count, expected; +unsigned int i;if (fd <0 )return -1 ;@@ -75,28 +76,27 @@ send_request(int fd, uint32_t function, data1_size =strlen (data1) +1 ; data2_size =strlen (data2) +1 ; - req_hdr[0 ].iov_base = &function; - req_hdr[0 ].iov_len =sizeof (function); - req_hdr[1 ].iov_base = &data1_size; - req_hdr[1 ].iov_len =sizeof (data1_size); - req_hdr[2 ].iov_base = &data2_size; - req_hdr[2 ].iov_len =sizeof (data2_size); - -while (((count =writev (fd, req_hdr,3 )) <0 ) && (errno == EINTR)) ; -if (count != (sizeof (function) +sizeof (data1_size) + -sizeof (data2_size))) { -return -1 ; - } + iov[0 ].iov_base = &function; + iov[0 ].iov_len =sizeof (function); + iov[1 ].iov_base = &data1_size; + iov[1 ].iov_len =sizeof (data1_size); + iov[2 ].iov_base = &data2_size; + iov[2 ].iov_len =sizeof (data2_size); + iov[3 ].iov_base = (char *)data1; + iov[3 ].iov_len = data1_size; + iov[4 ].iov_base = (char *)data2; + iov[4 ].iov_len = data2_size; +memset (&msgh,0 ,sizeof (msgh)); + msgh.msg_iov = iov; + msgh.msg_iovlen =sizeof (iov)/sizeof (iov[0 ]); + + expected =0 ; +for (i =0 ; i <sizeof (iov)/sizeof (iov[0 ]); i++) + expected += iov[i].iov_len; - req_data[0 ].iov_base = (char *)data1; - req_data[0 ].iov_len = data1_size; - req_data[1 ].iov_base = (char *)data2; - req_data[1 ].iov_len = data2_size; - -while (((count =writev (fd, req_data,2 )) <0 ) && (errno == EINTR)) ; -if (count <0 || (uint32_t ) count != (data1_size + data2_size)) { +while (((count =sendmsg (fd, &msgh,MSG_NOSIGNAL )) <0 ) && (errno ==EINTR )) ; +if (count <0 || count != expected)return -1 ; - }
Quoted 5 lines
Quoted 3 lines
return 0;
}Acked-by Joshua Brindle <[email protected]>
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 95 lines · Stephen Smalley
Quoted 17 lines · Daniel J Walsh
Quoted 16 lines · Stephen Smalley
Quoted 2 lines · Daniel J Walsh
Have newrole ignore sigpipe so it gives correct error message when flooded with 4000 character security context.
I'm a little unclear on this one, although I did find a bug report about it (which would be helpful to identify in the patch posting in the future when it applies for easy reference), at
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=203801If I read that one correctly, the SIGPIPE is actually happening when libselinux tries to write the context to the setrans socket, because the daemon is dropping the connection immediately upon getting the header with such a large length (more generally, any failure in the daemon before reading the entire request could lead to this). So that could affect any user of libselinux, not just newrole, right?
Quoted 6 lines
Quoted 5 lines
Looking around a bit, I see that if we changed the use of
writev()in libselinux to instead usesendmsg()with an explicitMSG_NOSIGNALflag, we could avoid having such failures generate SIGPIPE altogether. Then we would just get an error return and have the usual fallback handling.That sounds like a better solution.
Possible patch below. Changes:
1) Collect up the entire request into a single msg and send it once.
2) Use sendmsg withMSG_NOSIGNALrather than writev.Can anyone explain what data2 is for? It is always NULL at present AFAICS.
Index:
libselinux/src/setrans_client.c
===================================================================
RCS file: /nfshome/pal/CVS/selinux-usr/libselinux/src/setrans_client.c,v retrieving revision 1.8
diff -u -p -r1.8setrans_client.csrc/setrans_client.c +21
-19@@ -58,11 +58,12 @@ static int setransd_open(void)static int send_request (int fd,uint32_t function,const char *data1,const char *data2) { -struct iovec req_hdr[3 ]; +struct msghdr msgh; +struct iovec iov[5 ];uint32_t data1_size;uint32_t data2_size; -struct iovec req_data[2 ]; -ssize_t count; +ssize_t count, expected; +unsigned int i;if (fd <0 )return -1 ;@@ -75,28 +76,27 @@ send_request(int fd, uint32_t function, data1_size =strlen (data1) +1 ; data2_size =strlen (data2) +1 ; - req_hdr[0 ].iov_base = &function; - req_hdr[0 ].iov_len =sizeof (function); - req_hdr[1 ].iov_base = &data1_size; - req_hdr[1 ].iov_len =sizeof (data1_size); - req_hdr[2 ].iov_base = &data2_size; - req_hdr[2 ].iov_len =sizeof (data2_size); - -while (((count =writev (fd, req_hdr,3 )) <0 ) && (errno ==EINTR )) ; -if (count != (sizeof (function) +sizeof (data1_size) + -sizeof (data2_size))) { -return -1 ; - } + iov[0 ].iov_base = &function; + iov[0 ].iov_len =sizeof (function); + iov[1 ].iov_base = &data1_size; + iov[1 ].iov_len =sizeof (data1_size); + iov[2 ].iov_base = &data2_size; + iov[2 ].iov_len =sizeof (data2_size); + iov[3 ].iov_base = (char *)data1; + iov[3 ].iov_len = data1_size; + iov[4 ].iov_base = (char *)data2; + iov[4 ].iov_len = data2_size; +memset (&msgh,0 ,sizeof (msgh)); + msgh.msg_iov = iov; + msgh.msg_iovlen =sizeof (iov)/sizeof (iov[0 ]); + + expected =0 ; +for (i =0 ; i <sizeof (iov)/sizeof (iov[0 ]); i++) + expected += iov[i].iov_len; - req_data[0 ].iov_base = (char *)data1; - req_data[0 ].iov_len = data1_size; - req_data[1 ].iov_base = (char *)data2; - req_data[1 ].iov_len = data2_size;
src/setrans_client.c send_request(int fd, uint32_t function, · line 102
Quoted 10 lines
src/setrans_client.c +2
-4- -while (((count =writev (fd, req_data,2 )) <0 ) && (errno ==EINTR )) ; -if (count <0 || (uint32_t ) count != (data1_size + data2_size)) { +while (((count =sendmsg (fd, &msgh,MSG_NOSIGNAL )) <0 ) && (errno ==EINTR )) ; +if (count <0 || count != expected)return -1 ; - }return 0 ; }
Thanks, merged.
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.