Lines Matching refs:arc

3402         with ArchiveMaker() as arc:
3403 arc.add('benign.txt')
3405 with self.check_context(arc.open(), filter):
3411 with ArchiveMaker() as arc:
3412 arc.add(self.outerdir / 'escaped.evil')
3414 with self.check_context(arc.open(), 'fully_trusted'):
3418 with self.check_context(arc.open(), filter):
3437 with ArchiveMaker() as arc:
3438 arc.add('current', symlink_to='.')
3439 arc.add('parent', symlink_to='current/..')
3440 arc.add('parent/evil')
3443 with self.check_context(arc.open(), 'fully_trusted'):
3456 with self.check_context(arc.open(), 'tar'):
3462 with self.check_context(arc.open(), 'data'):
3470 with self.check_context(arc.open(), 'fully_trusted'):
3472 with self.check_context(arc.open(), 'tar'):
3474 with self.check_context(arc.open(), 'data'):
3481 with ArchiveMaker() as arc:
3482 arc.add('current', symlink_to='.')
3483 arc.add('current/parent', symlink_to='..')
3484 arc.add('parent/evil')
3486 with self.check_context(arc.open(), 'fully_trusted'):
3495 with self.check_context(arc.open(), 'tar'):
3506 with self.check_context(arc.open(), 'data'):
3516 with ArchiveMaker() as arc:
3517 arc.add('parent', symlink_to=self.outerdir)
3518 arc.add('parent/evil')
3520 with self.check_context(arc.open(), 'fully_trusted'):
3527 with self.check_context(arc.open(), 'tar'):
3537 with self.check_context(arc.open(), 'data'):
3545 with ArchiveMaker() as arc:
3546 arc.add('../moo', symlink_to='..//tmp/moo')
3549 with self.check_context(arc.open(), filter='fully_trusted'):
3569 with self.check_context(arc.open(), filter):
3579 with ArchiveMaker() as arc:
3580 arc.add('tmp/')
3581 arc.add('tmp/../../moo', symlink_to='tmp/../..//tmp/moo')
3583 with self.check_context(arc.open(), 'fully_trusted'):
3589 with self.check_context(arc.open(), filter):
3599 with ArchiveMaker() as arc:
3600 arc.add('all_bits', mode='?rwsrwsrwt')
3601 arc.add('perm_bits', mode='?rwxrwxrwx')
3602 arc.add('exec_group_other', mode='?rw-rwxrwx')
3603 arc.add('read_group_only', mode='?---r-----')
3604 arc.add('no_bits', mode='?---------')
3605 arc.add('dir/', mode='?---rwsrwt')
3621 with self.check_context(arc.open(), 'fully_trusted'):
3635 with self.check_context(arc.open(), 'tar'):
3643 with self.check_context(arc.open(), 'data'):
3655 with ArchiveMaker() as arc:
3656 arc.add('foo', type=tarfile.FIFOTYPE)
3659 with self.check_context(arc.open(), filter):
3666 with self.check_context(arc.open(), 'data'):
3717 with ArchiveMaker() as arc:
3718 arc.add('foo')
3720 with self.check_context(arc.open(), None):
3773 with ArchiveMaker() as arc:
3774 arc.add('move_this')
3775 arc.add('ignore_this')
3776 arc.add('keep')
3777 with self.check_context(arc.open(), custom_filter):
3782 with ArchiveMaker() as arc:
3783 arc.add('foo')
3784 with self.check_context(arc.open(), 'bad filter name'):
3807 with ArchiveMaker() as arc:
3808 arc.add('good')
3809 arc.add('bad', symlink_to='/')
3810 arc.add('good')
3812 with self.check_context(arc.open(), custom_filter):
3829 with ArchiveMaker() as arc:
3830 arc.add('file')
3834 with self.check_context(arc.open(errorlevel=0), extracterror_filter):
3837 with self.check_context(arc.open(errorlevel=0), filtererror_filter):
3840 with self.check_context(arc.open(errorlevel=0), oserror_filter):
3843 with self.check_context(arc.open(errorlevel=0), tarerror_filter):
3846 with self.check_context(arc.open(errorlevel=0), valueerror_filter):
3851 with self.check_context(arc.open(errorlevel=1), extracterror_filter):
3854 with self.check_context(arc.open(errorlevel=1), filtererror_filter):
3857 with self.check_context(arc.open(errorlevel=1), oserror_filter):
3860 with self.check_context(arc.open(errorlevel=1), tarerror_filter):
3863 with self.check_context(arc.open(errorlevel=1), valueerror_filter):
3868 with self.check_context(arc.open(errorlevel=2), extracterror_filter):
3871 with self.check_context(arc.open(errorlevel=2), filtererror_filter):
3874 with self.check_context(arc.open(errorlevel=2), oserror_filter):
3877 with self.check_context(arc.open(errorlevel=2), tarerror_filter):
3880 with self.check_context(arc.open(errorlevel=2), valueerror_filter):
3885 with self.check_context(arc.open(errorlevel='boo!'), filtererror_filter):