Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 924221 Details for
Bug 1126886
Bad interaction between ptrace() and capabilities(7)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Simple C program to bind to a port, can be used for reproducing problem
test_bind_priv.c (text/x-csrc), 696 bytes, created by
Bob Doolittle
on 2014-08-05 14:05:58 UTC
(
hide
)
Description:
Simple C program to bind to a port, can be used for reproducing problem
Filename:
MIME Type:
Creator:
Bob Doolittle
Created:
2014-08-05 14:05:58 UTC
Size:
696 bytes
patch
obsolete
>#include <stdio.h> >#include <sys/types.h> >#include <stdlib.h> >#include <sys/socket.h> >#include <sys/stat.h> >#include <netinet/in.h> > >main(int argc, char **argv) >{ > struct sockaddr_in sockaddr, peeraddr; > int port; > int protoso; > > port = atoi(argv[1]); > sockaddr.sin_family = AF_INET; > sockaddr.sin_port = htons(port); > sockaddr.sin_addr.s_addr = INADDR_ANY; > > if ((protoso = socket(AF_INET, SOCK_STREAM, 0)) < 0) { > perror("socket"); > exit(2); > } > printf("Binding to port %d\n", port); > if (bind(protoso, (struct sockaddr *)&sockaddr, sizeof(sockaddr)) < 0) { > perror("bind"); > } else { > printf("Bind succeeded\n"); > } > sleep(100); > exit(0); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1126886
: 924221