Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit
» 

DSPP Home

» HP STK home
Tru64 UNIX STK
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» FAQ
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
» DSPP
Content starts here

critical impact:

setruid and setrgid - not available; use setresuid and setresgid (CrUn67)

SEC Impacts

Problem description

The setruid and setrgid routines exist on Tru64 UNIX, but not on HP-UX.However, replacement technology exists in setresuid and setresgid.

The setruid function sets the process real user ID. The setrgid function sets the process real group ID.

Identifiers

C/C++ Functionssetrgid C/C++ Functionssetruid      

See also

Solution description

Change calls in application code.

Replace calls to setruid with setresuid and replace calls to setrgid with setresgid. Note that setresuid and setresgid might not behave exactly the same as setruid and setrgid. Review your code and applicable manpages for more information.

See also


Problem summary

classifications source types OS release severity type
SEC C, C++ any HP-UX 11i version critical unavailable
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.