Patch for 2.1.28 System V IPC

Stefan Kuehnel (un06@rz.uni-karlsruhe.de)
11 Mar 1997 23:43:22 GMT


Hello,

I just looked into the Sys V IPC code and wondered why there is a
seperate type for the PID in the IPC code. I looked into Stevens and
the most current SystemV programmers guide I could get and there is
used a normal pid_t instead of this special type used by Linux. So if
there is no special reason, why this is so, here is a patch to change
that. Why I was at it, I changed the order of some checks for suser()
so that it is at the end of access checks (as required by the comment
in front of suser()).

Stefan

begin 664 sysvipc.diff.gz
M'XL("(+F)3,"`W-Y<W9I<&,N9&EF9@#M66MOV\82_4S_BBD*&))MRJ(D2[)<
MZR9MTMP4<%+$*7J_$2MR)1+F*US2B6[3_O;.[)*6^!!))2A0%#40/K1G9G=G
MSCR6L=WU&O04=#WF5AH+]Y&#YP;I)WTT,`:C^:4;6%YJ\TLF?)UYD<,NHU"X
MG\QD&W$Q<!2X#76BZ_I1:K4?8Q?>6@D8!@QG"V.T&`W!N+Z>GIR?GW>;4_N5
MVW#'8C!&,!PNAE>+B4$J9B?/GH%NC"]F<([7*3Q[=@(D8_,UI(%P-P$*ND&B
MF>8#CP/NF0%.^&`F-SN<%P8;;0<(U^O",$GO1B/7IE&]?M2-K!S1LHRT$VIS
M""77_`03[O\YX>QC".".Y]-6_U=!S>ZOXFN\?]WD_1H-7^5\X83Q7^?^0],T
M$J&$33OB-ITH\T5<\*?SAU8N5$'-7*CB)1?>A(\P&H$Q65Q-%^-I$Q=J-/S+
MA;^:"U%DM5*A@FEF0@4NW?B"6V#,87B]N)HLAHU)H5[!01Z,1L0#O!9Y4/*N
MY8760X-_;6;;<6'<<G#&LWT5.>2)!-)/L/]7RX,3^-9=$]XT7[WYY0?3+*ZR
ME-^]C(A'^5%$+&[W9`VJV9<U`MH]2V18PS5Y<X0.G35YLTY%<UQ?R[B^KO$G
M5/^>S):X/J^$=Y-`+2.@2:(Y!S1SH*M,>B1^<R3>YH]?1J[II!N]RK@.!"N+
M:'=A(!/&&%M'8T$4&;=2K**DF6032;+)OR3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306'24^3#<$;M#8$[HBO'
5@,QKNJ'<]N3"WT_^!..X*]D@)```
`
end

-- 
---------------------------------------------------------------------
Stefan Kuehnel            !           email: un06@rz.uni-karlsruhe.de
Klauprechtstr. 11         !
76137 Karlsruhe           !            Tel.: ++49/721/32573
Germany                   !