[pso] [tema1][linux] checker

Alex Banceanu alexbanceanu at gmail.com
Mon Mar 29 00:56:06 EEST 2010


Intr-adevar, dupa ce am modificat interceptorul meu sa returneze 0
intotdeauna, toate testele trec, deci problema e in implementarea
interceptorului; dar evident a returna 0 e un hack cam prea hacky.

2010/3/28 Alex Banceanu <alexbanceanu at gmail.com>

> Ok, legat de la picarea testului de insmod, ai zis ca ar putea fi deoarece
> eu interceptez exit_group(), si insmod returneaza o prostie. Similar pot
> gandi ca si grep va retruna prostii(si pica toate testele, desi log-ul e
> bun).
>
> Totusi, interceptarea o fac ceva de genul asta:
>
> long (*old_exit_group)(int) = NULL;
>
> asmlinkage long my_exit_group(int error_code){
> //[...]
>  return old_exit_group(error_code);
> }
> //[...]
> static int sci_init(void)
> {
> //[...]
>  old_exit_group = sys_call_table[__NR_exit_group];
> sys_call_table[__NR_exit_group] = my_exit_group;
>  //[...]
> }
>
> Nu ar trebui ca apelul catre old_exit_group sa functioneze normal?
> 2010/3/28 Alex Banceanu <alexbanceanu at gmail.com>
>
> dap
>>
>> 2010/3/28 Razvan Deaconescu <razvan.deaconescu at cs.pub.ro>
>>
>> On Sun, 2010-03-28 at 18:55 +0300, Alex Banceanu wrote:
>>> > Pai asta am făcut, am trimis mai sus cum am modificat test.c si
>>> > rezultatele date într-un log.
>>> > In esenta pica tot, deşi valorile sunt identice
>>>
>>> Pica si pe masina virtuala noua?
>>>
>>> Razvan
>>>
>>> _______________________________________________
>>> pso mailing list
>>> pso at cursuri.cs.pub.ro
>>> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/lurker/list/pso.html/attachments/20100329/122878c1/attachment-0001.htm>


More information about the pso mailing list