DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: s

⟦8fbb69300⟧

    Length: 1661 (0x67d)
    Names: »setregid.2«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./bsd/usr/man/cat2/setregid.2« 
        └─⟦this⟧ »./usr/man/cat2/setregid.2« 

Default Hex Dump

0x000…020 0a 0a 0a 5f 08 4f 5f 08 6e 5f 08 6c 5f 08 69 5f 08 6e 5f 08 65 20 5f 08 4d 5f 08 61 5f 08 6e 5f   ┆   _ O_ n_ l_ i_ n_ e _ M_ a_ n_┆
0x020…040 08 75 5f 08 61 5f 08 6c 20 20 20 20 20 20 20 20 20 20 20 20 20 53 79 73 74 65 6d 20 43 61 6c 6c   ┆ u_ a_ l             System Call┆
0x040…060 73 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 73 65 74 72 65 67 69 64 28 32 29 0a 0a 0a 0a   ┆s                setregid(2)    ┆
0x060…080 4e 08 4e 08 4e 08 4e 41 08 41 08 41 08 41 4d 08 4d 08 4d 08 4d 45 08 45 08 45 08 45 0a 20 20 20   ┆N N N NA A A AM M M ME E E E    ┆
0x080…0a0 20 20 73 65 74 72 65 67 69 64 20 2d 20 73 65 74 20 72 65 61 6c 20 61 6e 64 20 65 66 66 65 63 74   ┆  setregid - set real and effect┆
0x0a0…0c0 69 76 65 20 67 72 6f 75 70 20 49 44 0a 0a 53 08 53 08 53 08 53 59 08 59 08 59 08 59 4e 08 4e 08   ┆ive group ID  S S S SY Y Y YN N ┆
0x0c0…0e0 4e 08 4e 54 08 54 08 54 08 54 41 08 41 08 41 08 41 58 08 58 08 58 08 58 0a 20 20 20 20 20 73 08   ┆N NT T T TA A A AX X X X      s ┆
0x0e0…100 73 08 73 08 73 65 08 65 08 65 08 65 74 08 74 08 74 08 74 72 08 72 08 72 08 72 65 08 65 08 65 08   ┆s s se e e et t t tr r r re e e ┆
0x100…120 65 67 08 67 08 67 08 67 69 08 69 08 69 08 69 64 08 64 08 64 08 64 28 08 28 08 28 08 28 72 08 72   ┆eg g g gi i i id d d d( ( ( (r r┆
0x120…140 08 72 08 72 67 08 67 08 67 08 67 69 08 69 08 69 08 69 64 08 64 08 64 08 64 2c 08 2c 08 2c 08 2c   ┆ r rg g g gi i i id d d d, , , ,┆
0x140…160 20 65 08 65 08 65 08 65 67 08 67 08 67 08 67 69 08 69 08 69 08 69 64 08 64 08 64 08 64 29 08 29   ┆ e e e eg g g gi i i id d d d) )┆
0x160…180 08 29 08 29 0a 20 20 20 20 20 69 08 69 08 69 08 69 6e 08 6e 08 6e 08 6e 74 08 74 08 74 08 74 20   ┆ ) )      i i i in n n nt t t t ┆
0x180…1a0 72 08 72 08 72 08 72 67 08 67 08 67 08 67 69 08 69 08 69 08 69 64 08 64 08 64 08 64 2c 08 2c 08   ┆r r r rg g g gi i i id d d d, , ┆
0x1a0…1c0 2c 08 2c 20 65 08 65 08 65 08 65 67 08 67 08 67 08 67 69 08 69 08 69 08 69 64 08 64 08 64 08 64   ┆, , e e e eg g g gi i i id d d d┆
0x1c0…1e0 3b 08 3b 08 3b 08 3b 0a 0a 44 08 44 08 44 08 44 45 08 45 08 45 08 45 53 08 53 08 53 08 53 43 08   ┆; ; ; ;  D D D DE E E ES S S SC ┆
0x1e0…200 43 08 43 08 43 52 08 52 08 52 08 52 49 08 49 08 49 08 49 50 08 50 08 50 08 50 54 08 54 08 54 08   ┆C C CR R R RI I I IP P P PT T T ┆
0x200…220 54 49 08 49 08 49 08 49 4f 08 4f 08 4f 08 4f 4e 08 4e 08 4e 08 4e 0a 20 20 20 20 20 54 68 65 20   ┆TI I I IO O O ON N N N      The ┆
0x220…240 72 65 61 6c 20 61 6e 64 20 65 66 66 65 63 74 69 76 65 20 67 72 6f 75 70 20 49 44 27 73 20 6f 66   ┆real and effective group ID's of┆
0x240…260 20 74 68 65 20 63 75 72 72 65 6e 74 20 70 72 6f 63 65 73 73 20 61 72 65 0a 20 20 20 20 20 73 65   ┆ the current process are      se┆
0x260…280 74 20 74 6f 20 74 68 65 20 61 72 67 75 6d 65 6e 74 73 2e 20 20 4f 6e 6c 79 20 74 68 65 20 73 75   ┆t to the arguments.  Only the su┆
0x280…2a0 70 65 72 2d 75 73 65 72 20 6d 61 79 20 63 68 61 6e 67 65 20 74 68 65 0a 20 20 20 20 20 72 65 61   ┆per-user may change the      rea┆
0x2a0…2c0 6c 20 67 72 6f 75 70 20 49 44 20 6f 66 20 61 20 70 72 6f 63 65 73 73 2e 20 20 55 6e 70 72 69 76   ┆l group ID of a process.  Unpriv┆
0x2c0…2e0 69 6c 65 64 67 65 64 20 75 73 65 72 73 20 6d 61 79 20 63 68 61 6e 67 65 0a 20 20 20 20 20 74 68   ┆iledged users may change      th┆
0x2e0…300 65 20 65 66 66 65 63 74 69 76 65 20 67 72 6f 75 70 20 49 44 20 74 6f 20 74 68 65 20 72 65 61 6c   ┆e effective group ID to the real┆
0x300…320 20 67 72 6f 75 70 20 49 44 2c 20 62 75 74 20 74 6f 20 6e 6f 0a 20 20 20 20 20 6f 74 68 65 72 2e   ┆ group ID, but to no      other.┆
0x320…340 0a 0a 20 20 20 20 20 53 75 70 70 6c 79 69 6e 67 20 61 20 76 61 6c 75 65 20 6f 66 20 2d 31 20 66   ┆       Supplying a value of -1 f┆
0x340…360 6f 72 20 65 69 74 68 65 72 20 74 68 65 20 72 65 61 6c 20 6f 72 20 65 66 66 65 63 74 69 76 65 0a   ┆or either the real or effective ┆
0x360…380 20 20 20 20 20 67 72 6f 75 70 20 49 44 20 66 6f 72 63 65 73 20 74 68 65 20 73 79 73 74 65 6d 20   ┆     group ID forces the system ┆
0x380…3a0 74 6f 20 73 75 62 73 74 69 74 75 74 65 20 74 68 65 20 63 75 72 72 65 6e 74 20 49 44 20 69 6e 0a   ┆to substitute the current ID in ┆
0x3a0…3c0 20 20 20 20 20 70 6c 61 63 65 20 6f 66 20 74 68 65 20 2d 31 20 70 61 72 61 6d 65 74 65 72 2e 0a   ┆     place of the -1 parameter. ┆
0x3c0…3e0 0a 52 08 52 08 52 08 52 45 08 45 08 45 08 45 54 08 54 08 54 08 54 55 08 55 08 55 08 55 52 08 52   ┆ R R R RE E E ET T T TU U U UR R┆
0x3e0…400 08 52 08 52 4e 08 4e 08 4e 08 4e 20 56 08 56 08 56 08 56 41 08 41 08 41 08 41 4c 08 4c 08 4c 08   ┆ R RN N N N V V V VA A A AL L L ┆
0x400…420 4c 55 08 55 08 55 08 55 45 08 45 08 45 08 45 0a 20 20 20 20 20 55 70 6f 6e 20 73 75 63 63 65 73   ┆LU U U UE E E E      Upon succes┆
0x420…440 73 66 75 6c 20 63 6f 6d 70 6c 65 74 69 6f 6e 2c 20 61 20 76 61 6c 75 65 20 6f 66 20 30 20 69 73   ┆sful completion, a value of 0 is┆
0x440…460 20 72 65 74 75 72 6e 65 64 2e 20 20 4f 74 68 2d 0a 20 20 20 20 20 65 72 77 69 73 65 2c 20 61 20   ┆ returned.  Oth-      erwise, a ┆
0x460…480 76 61 6c 75 65 20 6f 66 20 2d 31 20 69 73 20 72 65 74 75 72 6e 65 64 20 61 6e 64 20 5f 08 65 5f   ┆value of -1 is returned and _ e_┆
0x480…4a0 08 72 5f 08 72 5f 08 6e 5f 08 6f 20 69 73 20 73 65 74 20 74 6f 20 69 6e 64 69 2d 0a 20 20 20 20   ┆ r_ r_ n_ o is set to indi-     ┆
0x4a0…4c0 20 63 61 74 65 20 74 68 65 20 65 72 72 6f 72 2e 0a 0a 45 08 45 08 45 08 45 52 08 52 08 52 08 52   ┆ cate the error.  E E E ER R R R┆
0x4c0…4e0 52 08 52 08 52 08 52 4f 08 4f 08 4f 08 4f 52 08 52 08 52 08 52 53 08 53 08 53 08 53 0a 20 20 20   ┆R R R RO O O OR R R RS S S S    ┆
0x4e0…500 20 20 5b 45 50 45 52 4d 5d 20 20 20 20 20 20 20 20 54 68 65 20 63 75 72 72 65 6e 74 20 70 72 6f   ┆  [EPERM]        The current pro┆
0x500…520 63 65 73 73 20 69 73 20 6e 6f 74 20 74 68 65 20 73 75 70 65 72 2d 75 73 65 72 20 61 6e 64 0a 20   ┆cess is not the super-user and  ┆
0x520…540 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 20 63 68 61 6e 67 65 20 6f 74 68 65   ┆                   a change othe┆
0x540…560 72 20 74 68 61 6e 20 63 68 61 6e 67 69 6e 67 20 74 68 65 20 65 66 66 65 63 74 69 76 65 0a 20 20   ┆r than changing the effective   ┆
0x560…580 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 67 72 6f 75 70 2d 69 64 20 74 6f 20 74 68   ┆                  group-id to th┆
0x580…5a0 65 20 72 65 61 6c 20 67 72 6f 75 70 2d 69 64 20 77 61 73 20 73 70 65 63 69 66 69 65 64 2e 0a 0a   ┆e real group-id was specified.  ┆
0x5a0…5c0 53 08 53 08 53 08 53 45 08 45 08 45 08 45 45 08 45 08 45 08 45 20 41 08 41 08 41 08 41 4c 08 4c   ┆S S S SE E E EE E E E A A A AL L┆
0x5c0…5e0 08 4c 08 4c 53 08 53 08 53 08 53 4f 08 4f 08 4f 08 4f 0a 20 20 20 20 20 53 79 73 74 65 6d 20 43   ┆ L LS S S SO O O O      System C┆
0x5e0…600 61 6c 6c 73 20 28 32 29 3a 20 20 67 65 74 67 69 64 2c 20 73 65 74 72 65 75 69 64 0a 20 20 20 20   ┆alls (2):  getgid, setreuid     ┆
0x600…620 20 4c 69 62 72 61 72 79 20 46 75 6e 63 74 69 6f 6e 73 20 28 33 29 3a 20 20 73 65 74 67 69 64 0a   ┆ Library Functions (3):  setgid ┆
0x620…640 0a 4d 61 72 63 68 20 31 39 38 39 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20   ┆ March 1989                     ┆
0x640…660 20 20 20 20 20 20 20 20 20 54 58 20 50 72 6f 67 72 61 6d 6d 65 72 27 73 20 52 65 66 65 72 65 6e   ┆         TX Programmer's Referen┆
0x660…67d 63 65 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a            ┆ce                           ┆