HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Any way to secure the socket FD
Operating System - HP-UX
1833527
Members
3277
Online
110061
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2005 11:27 PM
11-23-2005 11:27 PM
Any way to secure the socket FD
Hello,
I have a Listening socket on port 2345. Is there any way that to set permissions to Socket FD so that only root process can read/write through it.
or any other ways to secure the FD?
Thanks,
Sumanth
I have a Listening socket on port 2345. Is there any way that to set permissions to Socket FD so that only root process can read/write through it.
or any other ways to secure the FD?
Thanks,
Sumanth
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2005 02:47 AM
11-28-2005 02:47 AM
Re: Any way to secure the socket FD
I don't think this is possible. It may be be possible if you are using local sockets where you can create physical socket descriptors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-28-2005 05:35 AM
11-28-2005 05:35 AM
Re: Any way to secure the socket FD
Are you trying to limit access to the _port number_ to just root, or to the actual file descriptor that is the socket in the context of a particular process?
IIRC, no other process (at least no other process not forked from this one) can access that particular FD.
As for the _port number_ well, above 1024 those are first-come, first served. Now, if you are the first, and do not happen to set SO_REUSEADDR or SO_REUSEPORT then no other application will be able to bind() to that port number. Particularly if your application happens to have called bind() with that port number and the various IP addresses on the system. (Not just INADDR_ANY)
IIRC, no other process (at least no other process not forked from this one) can access that particular FD.
As for the _port number_ well, above 1024 those are first-come, first served. Now, if you are the first, and do not happen to set SO_REUSEADDR or SO_REUSEPORT then no other application will be able to bind() to that port number. Particularly if your application happens to have called bind() with that port number and the various IP addresses on the system. (Not just INADDR_ANY)
there is no rest for the wicked yet the virtuous have no pillows
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP