~launchpad-pqm/launchpad/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
<!-- Copyright 2009-2011 Canonical Ltd.  This software is licensed under the
     GNU Affero General Public License version 3 (see the file LICENSE).
-->

<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    xmlns:i18n="http://namespaces.zope.org/i18n"
    xmlns:lp="http://namespaces.canonical.com/lp"
    xmlns:webservice="http://namespaces.canonical.com/webservice"
    xmlns:xmlrpc="http://namespaces.zope.org/xmlrpc"
    i18n_domain="launchpad">
    <include
        package=".browser"/>
    <include
        file="vocabularies.zcml"/>
    <authorizations module=".security" />

    <lp:help-folder folder="help" name="+help-soyuz" />

    <!-- PackageCloner -->

    <securedutility
        class="lp.soyuz.model.packagecloner.PackageCloner"
        provides="lp.soyuz.interfaces.packagecloner.IPackageCloner">
        <allow
            interface="lp.soyuz.interfaces.packagecloner.IPackageCloner"/>
    </securedutility>

        <!-- BinaryPackagePublishingHistory -->

        <class
            class="lp.soyuz.model.publishing.BinaryPackagePublishingHistory">
            <allow
                interface="lp.soyuz.interfaces.publishing.IArchiveSafePublisher"/>
            <require
                permission="launchpad.View"
                interface="lp.soyuz.interfaces.publishing.IBinaryPackagePublishingHistoryPublic"/>
            <require
                permission="launchpad.Edit"
                interface="lp.soyuz.interfaces.publishing.IPublishingEdit"/>
            <require
                permission="launchpad.Admin"
                set_schema="lp.soyuz.interfaces.publishing.IBinaryPackagePublishingHistory"/>
        </class>

        <!-- BinaryPackageFilePublishing -->

        <class
            class="lp.soyuz.model.publishing.BinaryPackageFilePublishing">
            <allow
                interface="lp.soyuz.interfaces.publishing.IBinaryPackageFilePublishing"/>

            <!-- XXX cprov 2006-06-14: missing security adapter -->

        </class>

    <!-- ArchiveArch -->
    <class
        class="lp.soyuz.model.archivearch.ArchiveArch">
        <allow
            interface="lp.soyuz.interfaces.archivearch.IArchiveArch" />
    </class>

    <!-- ArchiveArchSet -->
    <securedutility
        class="lp.soyuz.model.archivearch.ArchiveArchSet"
        provides="lp.soyuz.interfaces.archivearch.IArchiveArchSet">
        <allow
            interface="lp.soyuz.interfaces.archivearch.IArchiveArchSet"/>
    </securedutility>

    <!-- DistroSeriesPackageCache -->
    <class
        class="lp.soyuz.model.distroseriespackagecache.DistroSeriesPackageCache">
        <allow
            interface="lp.soyuz.interfaces.distroseriespackagecache.IDistroSeriesPackageCache"/>
    </class>

    <!-- BinaryPackageRelease -->

    <class
        class="lp.soyuz.model.binarypackagerelease.BinaryPackageRelease">
        <allow
            interface="lp.soyuz.interfaces.binarypackagerelease.IBinaryPackageRelease"/>
    </class>

    <!-- SourcePackageRelease -->

    <class
        class="lp.soyuz.model.sourcepackagerelease.SourcePackageRelease">
        <allow
            interface="lp.soyuz.interfaces.sourcepackagerelease.ISourcePackageRelease"/>
        <!-- changelog needs to be updated when unembargoing -->
        <require
            permission="launchpad.Edit"
            set_attributes="changelog"/>
    </class>

        <!-- SourcePackagePublishingHistory -->

        <class
            class="lp.soyuz.model.publishing.SourcePackagePublishingHistory">
            <allow
                interface="lp.soyuz.interfaces.publishing.IArchiveSafePublisher"/>
            <require
                permission="launchpad.View"
                interface="lp.soyuz.interfaces.publishing.ISourcePackagePublishingHistoryPublic"/>
            <require
                permission="launchpad.Edit"
                interface="lp.soyuz.interfaces.publishing.IPublishingEdit"/>
            <require
                permission="launchpad.Admin"
                set_schema="lp.soyuz.interfaces.publishing.ISourcePackagePublishingHistory"/>
        </class>

        <!-- SourcePackageFilePublishing -->

        <class
            class="lp.soyuz.model.publishing.SourcePackageFilePublishing">
            <allow
                interface="lp.soyuz.interfaces.publishing.ISourcePackageFilePublishing"/>

            <!-- XXX cprov 2006-06-14: Missing security adapter. -->

        </class>

        <!-- PublishingSet -->

        <class
            class="lp.soyuz.model.publishing.PublishingSet">
            <allow
                interface="lp.soyuz.interfaces.publishing.IPublishingSet"/>
        </class>
        <securedutility
            class="lp.soyuz.model.publishing.PublishingSet"
            provides="lp.soyuz.interfaces.publishing.IPublishingSet">
            <allow
                interface="lp.soyuz.interfaces.publishing.IPublishingSet"/>
        </securedutility>
    <class
        class="lp.soyuz.model.queue.PackageUploadQueue">
        <implements
            interface="lp.soyuz.interfaces.queue.IPackageUploadQueue"/>
    </class>
    <class
        class="lp.soyuz.model.queue.PackageUpload">
        <implements
            interface="lp.soyuz.interfaces.queue.IPackageUpload"/>
        <allow
            attributes="
                status"/>
        <require
            permission="zope.Public"
            attributes="
                id
                distroseries
                pocket
                changesfile
                signing_key
                archive
                sources
                builds
                customfiles
                custom_file_urls
                date_created
                sourcepackagerelease
                component_name
                concrete_package_copy_job
                contains_source
                contains_build
                contains_translation
                contains_installer
                contains_upgrader
                contains_ddtp
                displayname
                displayarchs
                displayversion
                is_delayed_copy
                isPPA
                package_copy_job
                package_copy_job_id
                package_name
                package_version
                section_name
                components"/>
        <require
            permission="launchpad.Edit"
            attributes="
                setNew
                setUnapproved
                setRejected
                setAccepted
                setDone
                realiseUpload
                addSource
                addBuild
                addCustom
                syncUpdate
                notify
                acceptFromCopy
                acceptFromUploader
                acceptFromQueue
                rejectFromQueue
                overrideSource
                overrideBinaries"
            set_attributes="status distroseries pocket changesfile archive"/>
    </class>
    <class
        class="lp.soyuz.model.queue.PackageUploadSource">
        <allow
            interface="lp.soyuz.interfaces.queue.IPackageUploadSource"/>
    </class>
    <class
        class="lp.soyuz.model.queue.PackageUploadBuild">
        <allow
            interface="lp.soyuz.interfaces.queue.IPackageUploadBuild"/>
    </class>
    <class
        class="lp.soyuz.model.queue.PackageUploadCustom">
        <allow
            interface="lp.soyuz.interfaces.queue.IPackageUploadCustom"/>
        <require
            permission="launchpad.Admin" set_attributes="libraryfilealias"/>
    </class>

    <!-- PackageUploadSet -->

    <securedutility
        class="lp.soyuz.model.queue.PackageUploadSet"
        provides="lp.soyuz.interfaces.queue.IPackageUploadSet">
        <allow
            interface="lp.soyuz.interfaces.queue.IPackageUploadSet"/>
    </securedutility>

        <!-- BinaryPackagename -->

        <class
            class="lp.soyuz.model.binarypackagename.BinaryPackageName">
            <allow
                interface="lp.soyuz.interfaces.binarypackagename.IBinaryPackageName"/>
        </class>
        <securedutility
            name="BinaryPackageName"
            component="lp.soyuz.model.binarypackagename.BinaryPackageNameVocabulary"
            provides="zope.schema.interfaces.IVocabularyFactory">
          <allow interface="zope.schema.interfaces.IVocabularyFactory"/>
        </securedutility>

        <class class="lp.soyuz.model.binarypackagename.BinaryPackageNameVocabulary">
          <allow interface="canonical.launchpad.webapp.vocabulary.IHugeVocabulary"/>
        </class>

        <!-- BinaryPackagenameIterator -->

        <class
            class="lp.soyuz.model.binarypackagename.BinaryPackageNameIterator">
            <allow
                interface="canonical.launchpad.webapp.vocabulary.ICountableIterator"/>
        </class>

        <!-- BinaryPackageNameSet -->

        <securedutility
            class="lp.soyuz.model.binarypackagename.BinaryPackageNameSet"
            provides="lp.soyuz.interfaces.binarypackagename.IBinaryPackageNameSet">
            <allow
                interface="lp.soyuz.interfaces.binarypackagename.IBinaryPackageNameSet"/>
        </securedutility>
        <class
            class="lp.soyuz.model.binarypackagename.BinaryPackageNameSet">
            <allow
                interface="lp.soyuz.interfaces.binarypackagename.IBinaryPackageNameSet"/>
        </class>

    <!-- ArchiveDependency -->

    <class
        class="lp.soyuz.model.archivedependency.ArchiveDependency">
        <allow
            interface="lp.soyuz.interfaces.archivedependency.IArchiveDependency"/>
    </class>

    <!-- DistroSeriesSourcePackageRelease -->

    <class
        class="lp.soyuz.model.distroseriessourcepackagerelease.DistroSeriesSourcePackageRelease">
        <allow
            interface="lp.soyuz.interfaces.distroseriessourcepackagerelease.IDistroSeriesSourcePackageRelease"/>
    </class>

    <!-- PackageDiff -->

    <class
        class="lp.soyuz.model.packagediff.PackageDiff">
        <allow
            interface="lp.soyuz.interfaces.packagediff.IPackageDiff"/>
        <require
            permission="launchpad.Edit"
            set_schema="lp.soyuz.interfaces.packagediff.IPackageDiff"/>
    </class>

    <!-- PackageDiffSet -->

    <class
        class="lp.soyuz.model.packagediff.PackageDiffSet">
        <allow
            interface="lp.soyuz.interfaces.packagediff.IPackageDiffSet"/>
    </class>
    <securedutility
        class="lp.soyuz.model.packagediff.PackageDiffSet"
        provides="lp.soyuz.interfaces.packagediff.IPackageDiffSet">
        <allow
            interface="lp.soyuz.interfaces.packagediff.IPackageDiffSet"/>
    </securedutility>

    <!-- ArchiveAuthToken -->

    <class
        class="lp.soyuz.model.archiveauthtoken.ArchiveAuthToken">
        <require
            permission="launchpad.View"
            interface="lp.soyuz.interfaces.archiveauthtoken.IArchiveAuthTokenView"/>
        <require
            permission="launchpad.Edit"
            set_schema="lp.soyuz.interfaces.archiveauthtoken.IArchiveAuthTokenView"
            interface="lp.soyuz.interfaces.archiveauthtoken.IArchiveAuthTokenEdit"/>
    </class>

    <!-- ArchiveAuthTokenSet -->

    <securedutility
        class="lp.soyuz.model.archiveauthtoken.ArchiveAuthTokenSet"
        provides="lp.soyuz.interfaces.archiveauthtoken.IArchiveAuthTokenSet">
        <allow
            interface="lp.soyuz.interfaces.archiveauthtoken.IArchiveAuthTokenSet"/>
    </securedutility>

    <!-- DistributionSourcePackageCache -->
    <class
        class="lp.soyuz.model.distributionsourcepackagecache.DistributionSourcePackageCache">
        <allow
            interface="lp.soyuz.interfaces.distributionsourcepackagecache.IDistributionSourcePackageCache"/>
    </class>

    <!-- DistroArchSeriesBinaryPackageRelease -->

    <class
        class="lp.soyuz.model.distroarchseriesbinarypackagerelease.DistroArchSeriesBinaryPackageRelease">
        <allow
            interface="lp.soyuz.interfaces.distroarchseriesbinarypackagerelease.IDistroArchSeriesBinaryPackageRelease"/>
    </class>
    <class
        class="lp.soyuz.model.processor.Processor">
        <allow
            interface="lp.soyuz.interfaces.processor.IProcessor"/>
        <require
            permission="zope.Public"
            set_schema="lp.soyuz.interfaces.processor.IProcessor"/>
    </class>
    <class
        class="lp.soyuz.model.processor.ProcessorFamily">
        <allow
            interface="lp.soyuz.interfaces.processor.IProcessorFamily"/>
        <require
            permission="zope.Public"
            set_schema="lp.soyuz.interfaces.processor.IProcessorFamily"/>
    </class>
    <securedutility
        class="lp.soyuz.model.processor.ProcessorFamilySet"
        provides="lp.soyuz.interfaces.processor.IProcessorFamilySet">
        <allow
            interface="lp.soyuz.interfaces.processor.IProcessorFamilySet"/>
    </securedutility>
    <securedutility
        class="lp.soyuz.model.processor.ProcessorSet"
        provides="lp.soyuz.interfaces.processor.IProcessorSet">
        <allow
            interface="lp.soyuz.interfaces.processor.IProcessorSet"/>
    </securedutility>
    <adapter
        for="lp.soyuz.interfaces.distroarchseriesbinarypackagerelease.IDistroArchSeriesBinaryPackageRelease"
        provides="canonical.launchpad.webapp.interfaces.IBreadcrumb"
        factory="lp.soyuz.browser.distroarchseriesbinarypackagerelease.DistroArchSeriesBinaryPackageReleaseBreadcrumb"
        permission="zope.Public" />


    <!-- Archive -->

    <class
        class="lp.soyuz.model.archive.Archive">
        <allow
            interface="lp.soyuz.interfaces.archive.IArchivePublic"/>
        <require
            permission="launchpad.View"
            interface="lp.soyuz.interfaces.archive.IArchiveView"/>
        <require
            permission="launchpad.Append"
            interface="lp.soyuz.interfaces.archive.IArchiveAppend"/>
        <require
            permission="launchpad.Edit"
            interface="lp.soyuz.interfaces.archive.IArchiveEdit"
            set_attributes="description displayname publish status"/>
        <!--
           NOTE: The 'private' permission controls who can turn a public
           archive into a private one, and vice versa. The logic that says this
           requires launchpad.Commercial permissions is duplicated in
           IArchive.validatePPA.
          -->
        <require
            permission="launchpad.Commercial"
	    interface="lp.soyuz.interfaces.archive.IArchiveCommercial"
            set_attributes="authorized_size build_debug_symbols buildd_secret
                            commercial enabled_restricted_families
                            external_dependencies private
                            require_virtualized relative_build_score "/>
        <require
            permission="launchpad.Admin"
            set_attributes="distribution name signing_key"/>
    </class>
    <adapter
        for="lp.soyuz.interfaces.archive.IArchive"
        provides="lp.registry.interfaces.person.IPerson"
        factory="lp.registry.browser.person.archive_to_person"/>
    <adapter
        for="lp.soyuz.interfaces.archive.IArchive"
        provides="lp.app.browser.badge.IHasBadges"
        factory="lp.soyuz.browser.archive.ArchiveBadges"
        permission="zope.Public"/>
    <adapter
        provides="canonical.launchpad.webapp.interfaces.IBreadcrumb"
        for="lp.soyuz.interfaces.archive.IArchive"
        factory="canonical.launchpad.webapp.breadcrumb.DisplaynameBreadcrumb"
        permission="zope.Public"/>

    <!-- ArchiveSet -->

    <class
        class="lp.soyuz.model.archive.ArchiveSet">
        <allow
            interface="lp.soyuz.interfaces.archive.IArchiveSet"/>
    </class>
    <securedutility
        class="lp.soyuz.model.archive.ArchiveSet"
        provides="lp.soyuz.interfaces.archive.IArchiveSet">
        <allow
            interface="lp.soyuz.interfaces.archive.IArchiveSet"/>
    </securedutility>

    <!-- ArchivePermission -->

    <class
        class="lp.soyuz.model.archivepermission.ArchivePermission">
        <allow
            interface="lp.soyuz.interfaces.archivepermission.IArchivePermission"/>
    </class>

    <!-- ArchivePermissionSet -->

    <class
        class="lp.soyuz.model.archivepermission.ArchivePermissionSet">
        <implements
            interface="lp.soyuz.interfaces.archivepermission.IArchivePermissionSet"/>
    </class>
    <securedutility
        class="lp.soyuz.model.archivepermission.ArchivePermissionSet"
        provides="lp.soyuz.interfaces.archivepermission.IArchivePermissionSet">
        <allow
            interface="lp.soyuz.interfaces.archivepermission.IArchivePermissionSet"/>
    </securedutility>

    <!-- BinaryPackageBuild -->

    <class
        class="lp.soyuz.model.binarypackagebuild.BinaryPackageBuild">
        <require
            permission="launchpad.View"
            interface="lp.soyuz.interfaces.binarypackagebuild.IBinaryPackageBuildView"/>
        <require
            permission="launchpad.Edit"
            interface="lp.soyuz.interfaces.binarypackagebuild.IBinaryPackageBuildEdit"/>
        <require
            permission="launchpad.Admin"
            interface="lp.soyuz.interfaces.binarypackagebuild.IBinaryPackageBuildAdmin"/>

        <!-- XXX cprov 2005-10-27

    bug=3580: We need a autobuild celebrity. -->

        <require
            permission="launchpad.Edit"
            set_attributes="log date_finished date_started builder
                            status dependencies upload_log"/>

        <!-- XXX bigjools 2010-07-27 bug=570939
             Work around the fact that not all BuildFarmJobs are concrete
             objects.

             This should not be required once the old BuildFarmJob stuff is
             removed when the Translation Template jobs and Recipe jobs
             use the new infrastructure -->
        <require
            permission="launchpad.Admin"
            set_attributes="failure_count"/>

    </class>
    <adapter
        provides="canonical.launchpad.webapp.interfaces.IBreadcrumb"
        for="lp.soyuz.interfaces.binarypackagebuild.IBinaryPackageBuild"
        factory="lp.soyuz.browser.build.BuildBreadcrumb"
        permission="zope.Public"/>

    <!-- BinaryPackageBuildSet -->

    <securedutility
        class="lp.soyuz.model.binarypackagebuild.BinaryPackageBuildSet"
        provides="lp.soyuz.interfaces.binarypackagebuild.IBinaryPackageBuildSet">
        <allow
            interface="lp.soyuz.interfaces.binarypackagebuild.IBinaryPackageBuildSet"/>
    </securedutility>
    <securedutility
        class="lp.soyuz.model.binarypackagebuild.BinaryPackageBuildSet"
        provides="lp.buildmaster.interfaces.buildfarmjob.ISpecificBuildFarmJobSource"
        name="PACKAGEBUILD">
        <allow interface="lp.buildmaster.interfaces.buildfarmjob.ISpecificBuildFarmJobSource"/>
    </securedutility>

    <!-- DistroArchSeriesBinaryPackage -->

    <class
        class="lp.soyuz.model.distroarchseriesbinarypackage.DistroArchSeriesBinaryPackage">
        <allow
            interface="lp.soyuz.interfaces.distroarchseriesbinarypackage.IDistroArchSeriesBinaryPackage"/>
    </class>
    <adapter
        for="lp.soyuz.interfaces.distroarchseriesbinarypackage.IDistroArchSeriesBinaryPackage"
        provides="canonical.launchpad.webapp.interfaces.IBreadcrumb"
        factory="canonical.launchpad.webapp.breadcrumb.NameBreadcrumb"
        permission="zope.Public" />

    <!-- ArchiveSubscriber -->

    <class
        class="lp.soyuz.model.archivesubscriber.ArchiveSubscriber">
        <require
            permission="launchpad.View"
            interface="lp.soyuz.interfaces.archivesubscriber.IArchiveSubscriberView"/>
        <require
            permission="launchpad.Edit"
            set_schema="lp.soyuz.interfaces.archivesubscriber.IArchiveSubscriberView"
            interface="lp.soyuz.interfaces.archivesubscriber.IArchiveSubscriberEdit"/>
    </class>

    <!-- ArchiveSubscriberSet -->

    <securedutility
        class="lp.soyuz.model.archivesubscriber.ArchiveSubscriberSet"
        provides="lp.soyuz.interfaces.archivesubscriber.IArchiveSubscriberSet">
        <allow
            interface="lp.soyuz.interfaces.archivesubscriber.IArchiveSubscriberSet"/>
    </securedutility>

    <!-- PersonalArchiveSubscription -->

    <class
        class="lp.soyuz.browser.archivesubscription.PersonalArchiveSubscription">
        <require
            permission="launchpad.View"
            interface="lp.soyuz.interfaces.archivesubscriber.IPersonalArchiveSubscription"/>
    </class>
    <adapter
        for="lp.soyuz.interfaces.archivesubscriber.IArchiveSubscriber"
        provides="lp.soyuz.browser.archivesubscription.IArchiveSubscriberUI"
        factory="lp.soyuz.browser.archivesubscription.archive_subscription_ui_adapter"/>
    <adapter
        provides="canonical.launchpad.webapp.interfaces.IBreadcrumb"
        for="lp.soyuz.interfaces.archivesubscriber.IPersonalArchiveSubscription"
        factory="canonical.launchpad.webapp.breadcrumb.DisplaynameBreadcrumb"
        permission="zope.Public"/>
    <subscriber
        for="lp.soyuz.interfaces.archivesubscriber.IArchiveSubscriber
             lazr.lifecycle.interfaces.IObjectCreatedEvent"
        handler="lp.soyuz.mail.notifications.notify_new_ppa_subscription"/>

    <!-- DistributionSourcePackageRelease -->

    <class
        class="lp.soyuz.model.distributionsourcepackagerelease.DistributionSourcePackageRelease">
        <allow
            interface="lp.soyuz.interfaces.distributionsourcepackagerelease.IDistributionSourcePackageRelease"/>
    </class>
    <adapter
        provides="canonical.launchpad.webapp.interfaces.IBreadcrumb"
        for="lp.soyuz.interfaces.distributionsourcepackagerelease.IDistributionSourcePackageRelease"
        factory="lp.soyuz.browser.distributionsourcepackagerelease.DistributionSourcePackageReleaseBreadcrumb"
        permission="zope.Public"/>

    <!-- DistroSeriesBinaryPackage -->

    <class
        class="lp.soyuz.model.distroseriesbinarypackage.DistroSeriesBinaryPackage">
        <allow
            interface="lp.soyuz.interfaces.distroseriesbinarypackage.IDistroSeriesBinaryPackage"/>
    </class>
    <adapter
        provides="canonical.launchpad.webapp.interfaces.IBreadcrumb"
        for="lp.soyuz.interfaces.distroseriesbinarypackage.IDistroSeriesBinaryPackage"
        factory="lp.soyuz.browser.distroseriesbinarypackage.DistroSeriesBinaryPackageBreadcrumb"
        permission="zope.Public"/>

        <!-- DistroArchSeries -->

        <class
            class="lp.soyuz.model.distroarchseries.DistroArchSeries">
            <allow
                interface="lp.soyuz.interfaces.distroarchseries.IDistroArchSeries"/>
            <allow
                interface="lp.soyuz.interfaces.buildrecords.IHasBuildRecords"/>
            <allow
                interface="lp.soyuz.interfaces.publishing.ICanPublishPackages"/>
            <require
                permission="launchpad.Admin"
                set_schema="lp.soyuz.interfaces.distroarchseries.IDistroArchSeries"/>
        </class>
        <adapter
            for="lp.soyuz.interfaces.distroarchseries.IDistroArchSeries"
            provides="canonical.launchpad.webapp.interfaces.IBreadcrumb"
            factory="lp.soyuz.browser.distroarchseries.DistroArchSeriesBreadcrumb"
            permission="zope.Public" />

    <!-- DistroArchSeriesSet -->

    <class
        class="lp.soyuz.model.distroarchseries.DistroArchSeriesSet">
        <allow
            interface="lp.soyuz.interfaces.distroarchseries.IDistroArchSeriesSet"/>
    </class>
    <securedutility
        class="lp.soyuz.model.distroarchseries.DistroArchSeriesSet"
        provides="lp.soyuz.interfaces.distroarchseries.IDistroArchSeriesSet">
        <allow
            interface="lp.soyuz.interfaces.distroarchseries.IDistroArchSeriesSet"/>
    </securedutility>

    <!-- PocketChroot -->

    <class
        class="lp.soyuz.model.distroarchseries.PocketChroot">
        <!-- XXX cprov 2006-07-13: it needs security permission tweaks. -->
        <!-- Currently it's only modified/added by a script.        -->
        <!-- We should allow changes only by buildd-admin member. -->

        <allow
            interface="lp.soyuz.interfaces.distroarchseries.IPocketChroot"/>
        <require
            permission="launchpad.Admin"
            set_schema="lp.soyuz.interfaces.distroarchseries.IPocketChroot"/>
    </class>

    <!-- Component -->

    <class
        class="lp.soyuz.model.component.Component">
        <allow
            interface="lp.soyuz.interfaces.component.IComponent"/>
    </class>

    <!-- ComponentSelection -->

    <class
        class="lp.soyuz.model.component.ComponentSelection">
        <allow
            interface="lp.soyuz.interfaces.component.IComponentSelection"/>
    </class>

    <!-- ComponentSet -->

    <class
        class="lp.soyuz.model.component.ComponentSet">
        <allow
            interface="lp.soyuz.interfaces.component.IComponentSet"/>
    </class>
    <securedutility
        class="lp.soyuz.model.component.ComponentSet"
        provides="lp.soyuz.interfaces.component.IComponentSet">
        <allow
            interface="lp.soyuz.interfaces.component.IComponentSet"/>
    </securedutility>

    <!-- Section -->

    <class
        class="lp.soyuz.model.section.Section">
        <allow
            interface="lp.soyuz.interfaces.section.ISection"/>
    </class>

    <!-- Section -->

    <class
        class="lp.soyuz.model.section.SectionSelection">
        <allow
            interface="lp.soyuz.interfaces.section.ISectionSelection"/>
    </class>

    <!-- SectionSet -->

    <class
        class="lp.soyuz.model.section.SectionSet">
        <allow
            interface="lp.soyuz.interfaces.section.ISectionSet"/>
    </class>
    <securedutility
        class="lp.soyuz.model.section.SectionSet"
        provides="lp.soyuz.interfaces.section.ISectionSet">
        <allow
            interface="lp.soyuz.interfaces.section.ISectionSet"/>
    </securedutility>

    <!-- SourcePackageFormatSelection -->

    <class
        class="lp.soyuz.model.sourcepackageformat.SourcePackageFormatSelection">
        <allow
            interface="lp.soyuz.interfaces.sourcepackageformat.ISourcePackageFormatSelection"/>
    </class>

    <!-- SourcePackageFormatSelectionSet -->

    <class
        class="lp.soyuz.model.sourcepackageformat.SourcePackageFormatSelectionSet">
        <allow
            interface="lp.soyuz.interfaces.sourcepackageformat.ISourcePackageFormatSelectionSet"/>
    </class>
    <securedutility
        class="lp.soyuz.model.sourcepackageformat.SourcePackageFormatSelectionSet"
        provides="lp.soyuz.interfaces.sourcepackageformat.ISourcePackageFormatSelectionSet">
        <allow
            interface="lp.soyuz.interfaces.sourcepackageformat.ISourcePackageFormatSelectionSet"/>
    </securedutility>

    <!-- SourcePackageReleaseFile -->

    <class
        class="lp.soyuz.model.files.SourcePackageReleaseFile">
        <allow
            interface="lp.soyuz.interfaces.files.ISourcePackageReleaseFile"/>
        <require
            permission="launchpad.Edit"
            set_schema="lp.soyuz.interfaces.files.ISourcePackageReleaseFile"/>
    </class>

    <!-- BinaryPackageFile -->

    <class
        class="lp.soyuz.model.files.BinaryPackageFile">
        <allow
            interface="lp.soyuz.interfaces.files.IBinaryPackageFile"/>
        <require
            permission="launchpad.Edit"
            set_schema="lp.soyuz.interfaces.files.IBinaryPackageFile"/>
    </class>
    <securedutility
        class="lp.soyuz.model.files.BinaryPackageFileSet"
        provides="lp.soyuz.interfaces.files.IBinaryPackageFileSet">
        <allow
            interface="lp.soyuz.interfaces.files.IBinaryPackageFileSet"/>
    </securedutility>
    <securedutility
        class="lp.soyuz.model.files.SourcePackageReleaseFileSet"
        provides="lp.soyuz.interfaces.files.ISourcePackageReleaseFileSet">
        <allow
            interface="lp.soyuz.interfaces.files.ISourcePackageReleaseFileSet"/>
    </securedutility>

    <!-- Packageset -->

    <class
        class="lp.soyuz.model.packageset.Packageset">
        <allow
            interface="lp.soyuz.interfaces.packageset.IPackagesetViewOnly"/>
        <require
            permission="launchpad.Edit"
            interface="lp.soyuz.interfaces.packageset.IPackagesetEdit"/>
    </class>
    <class
        class="lp.soyuz.model.packageset.PackagesetSet">
        <implements
            interface="lp.soyuz.interfaces.packageset.IPackagesetSet"/>
    </class>
    <securedutility
        class="lp.soyuz.model.packageset.PackagesetSet"
        provides="lp.soyuz.interfaces.packageset.IPackagesetSet">
        <allow interface=".interfaces.packageset.IPackagesetSet" />
        <require
            permission="launchpad.Edit"
            interface=".interfaces.packageset.IPackagesetSetEdit" />
    </securedutility>

    <!-- PackagesetGroup -->
    <class
        class="lp.soyuz.model.packagesetgroup.PackagesetGroup">
        <allow
            interface="lp.soyuz.interfaces.packagesetgroup.IPackagesetGroup"/>
    </class>

    <!-- BuildPackageJob -->
    <class
        class="lp.soyuz.model.buildpackagejob.BuildPackageJob">
        <allow
            interface="lp.soyuz.interfaces.buildpackagejob.IBuildPackageJob"/>
    </class>
    <!--
        The registration below is used to discover all build farm job classes
        that implement the `IBuildFarmJob` interface. Please see bug #503839
        for more detail.
        The 'name' attribute needs to be set to the appropriate
        `BuildFarmJobType` enumeration value.
    -->
    <utility component="lp.soyuz.model.buildpackagejob.BuildPackageJob"
        name="PACKAGEBUILD"
        provides="lp.buildmaster.interfaces.buildfarmjob.IBuildFarmJob"/>

    <!-- BinaryPackageBuildBehavior -->
    <adapter
        for="lp.soyuz.interfaces.buildpackagejob.IBuildPackageJob"
        provides="lp.buildmaster.interfaces.buildfarmjobbehavior.IBuildFarmJobBehavior"
        factory="lp.soyuz.model.binarypackagebuildbehavior.BinaryPackageBuildBehavior"
        permission="zope.Public" />

    <!-- BinaryPackageReleaseDownloadCount -->
    <class
        class="lp.soyuz.model.binarypackagerelease.BinaryPackageReleaseDownloadCount">
        <require
            permission="launchpad.View"
            interface="lp.soyuz.interfaces.binarypackagerelease.IBinaryPackageReleaseDownloadCount"/>
    </class>

    <call
      callable="lp.archiveuploader.uploadpolicy.register_archive_upload_policy_adapters"
      />

    <!-- Although the policies defined in lp.archiveuploader.tests are only
         required by tests, they're used when testing scripts manually on
         dogfood/staging, so they're registered here. -->
    <call
      callable="lp.archiveuploader.tests.register_archive_upload_policy_adapters"
      />

    <!-- BinaryAndSourcePackagename -->
    <class class="lp.soyuz.model.binaryandsourcepackagename.BinaryAndSourcePackageName">
        <allow interface="lp.soyuz.interfaces.binarypackagename.IBinaryAndSourcePackageName" />
    </class>

    <class class="lp.soyuz.model.binaryandsourcepackagename.BinaryAndSourcePackageNameIterator">
        <allow interface="canonical.launchpad.webapp.vocabulary.ICountableIterator" />
    </class>

    <securedutility
      name="BinaryAndSourcePackageName"
      component="lp.soyuz.model.binaryandsourcepackagename.BinaryAndSourcePackageNameVocabulary"
      provides="zope.schema.interfaces.IVocabularyFactory"
      >
      <allow interface="zope.schema.interfaces.IVocabularyFactory"/>
    </securedutility>

    <class class="lp.soyuz.model.binaryandsourcepackagename.BinaryAndSourcePackageNameVocabulary">
      <allow interface="canonical.launchpad.webapp.vocabulary.IHugeVocabulary"/>
    </class>

    <!-- DistributionJob -->
    <class class="lp.soyuz.model.distributionjob.DistributionJob">
        <allow interface="lp.soyuz.interfaces.distributionjob.IDistributionJob" />
    </class>

    <!-- InitializeDistroSeriesJobSource -->
    <securedutility
      component="lp.soyuz.model.initializedistroseriesjob.InitializeDistroSeriesJob"
      provides="lp.soyuz.interfaces.distributionjob.IInitializeDistroSeriesJobSource">
        <allow interface="lp.soyuz.interfaces.distributionjob.IInitializeDistroSeriesJobSource"/>
    </securedutility>
    <class class="lp.soyuz.model.initializedistroseriesjob.InitializeDistroSeriesJob">
        <allow interface="lp.soyuz.interfaces.distributionjob.IInitializeDistroSeriesJob" />
        <allow interface="lp.soyuz.interfaces.distributionjob.IDistributionJob" />
    </class>

    <!-- DistroSeriesDifferenceJobSource -->
    <securedutility
      component="lp.soyuz.model.distroseriesdifferencejob.DistroSeriesDifferenceJob"
      provides="lp.soyuz.interfaces.distributionjob.IDistroSeriesDifferenceJobSource">
        <allow interface="lp.soyuz.interfaces.distributionjob.IDistroSeriesDifferenceJobSource"/>
    </securedutility>
    <class class="lp.soyuz.model.distroseriesdifferencejob.DistroSeriesDifferenceJob">
        <allow interface="lp.soyuz.interfaces.distributionjob.IDistroSeriesDifferenceJob" />
        <allow interface="lp.soyuz.interfaces.distributionjob.IDistributionJob" />
    </class>

    <!-- PackageCopyJobSource -->
    <securedutility
        component=".model.packagecopyjob.PackageCopyJob"
        provides=".interfaces.packagecopyjob.IPackageCopyJobSource">
      <allow interface=".interfaces.packagecopyjob.IPackageCopyJobSource"/>
    </securedutility>
    <securedutility
        component=".model.packagecopyjob.PlainPackageCopyJob"
        provides=".interfaces.packagecopyjob.IPlainPackageCopyJobSource">
      <allow interface=".interfaces.packagecopyjob.IPlainPackageCopyJobSource"/>
    </securedutility>

    <!-- PackageCopyJob -->
    <class class=".model.packagecopyjob.PackageCopyJob">
      <allow interface=".interfaces.packagecopyjob.IPackageCopyJobPublic"/>
      <require
          permission="launchpad.Edit"
          set_schema=".interfaces.packagecopyjob.IPackageCopyJobPublic"
          interface=".interfaces.packagecopyjob.IPackageCopyJobEdit"/>
    </class>

    <!-- PlainPackageCopyJob -->
    <class class=".model.packagecopyjob.PlainPackageCopyJob">
      <allow interface=".interfaces.packagecopyjob.IPackageCopyJobPublic" />
      <allow interface=".interfaces.packagecopyjob.IPlainPackageCopyJob" />
      <require
          permission="launchpad.Edit"
          set_schema=".interfaces.packagecopyjob.IPackageCopyJobPublic"
          interface=".interfaces.packagecopyjob.IPackageCopyJobEdit"/>
    </class>

    <!-- PackageCopyPolicy -->
    <class class=".adapters.copypolicy.InsecureCopyPolicy">
      <allow interface=".interfaces.copypolicy.ICopyPolicy"/>
    </class>
    <class class=".adapters.copypolicy.MassSyncCopyPolicy">
      <allow interface=".interfaces.copypolicy.ICopyPolicy"/>
    </class>
    <adapter
      for="lazr.enum.DBItem"
      provides="lp.soyuz.interfaces.copypolicy.ICopyPolicy"
      factory="lp.soyuz.adapters.copypolicy.get_icopypolicy_for_packagecopypolicy"/>

    <!-- PackageCopyRequestSet -->
    <securedutility
        class="lp.soyuz.model.packagecopyrequest.PackageCopyRequestSet"
        provides="lp.soyuz.interfaces.packagecopyrequest.IPackageCopyRequestSet">
        <allow interface="lp.soyuz.interfaces.packagecopyrequest.IPackageCopyRequestSet" />
    </securedutility>


    <!-- PackageCopyRequest -->
    <class class="lp.soyuz.model.packagecopyrequest.PackageCopyRequest">
        <allow interface="lp.soyuz.interfaces.packagecopyrequest.IPackageCopyRequest"/>
        <require
            permission="launchpad.Edit"
            set_schema="lp.soyuz.interfaces.packagecopyrequest.IPackageCopyRequest"
        />
    </class>

    <!-- PackageRelationship -->
    <class class="lp.soyuz.browser.packagerelationship.PackageRelationship">
      <allow interface="lp.soyuz.interfaces.packagerelationship.IPackageRelationship"/>
    </class>

    <!-- PackageRelationshipSet -->
    <class class="lp.soyuz.browser.packagerelationship.PackageRelationshipSet">
      <allow interface="lp.soyuz.interfaces.packagerelationship.IPackageRelationshipSet"/>
    </class>

   <!-- Overrides -->
   <class class="lp.soyuz.adapters.overrides.SourceOverride">
        <allow interface="lp.soyuz.adapters.overrides.ISourceOverride" />
   </class>
   <class class="lp.soyuz.adapters.overrides.BinaryOverride">
        <allow interface="lp.soyuz.adapters.overrides.IBinaryOverride" />
   </class>

   <!-- OverridePolicy -->
   <class class="lp.soyuz.adapters.overrides.UbuntuOverridePolicy">
        <allow interface="lp.soyuz.adapters.overrides.IOverridePolicy" />
   </class>

    <!-- BinaryPackagePath -->

    <class
        class="lp.soyuz.model.binarypackagepath.BinaryPackagePath">
        <allow
            interface="lp.soyuz.interfaces.binarypackagepath.IBinaryPackagePath"/>
    </class>

    <!-- BinaryPackagePathSet -->

    <securedutility
        class="lp.soyuz.model.binarypackagepath.BinaryPackagePath"
        provides="lp.soyuz.interfaces.binarypackagepath.IBinaryPackagePathSet">
        <allow
            interface="lp.soyuz.interfaces.binarypackagepath.IBinaryPackagePathSet"/>
    </securedutility>

    <!-- BinaryPackageReleaseContents -->

    <class
        class="lp.soyuz.model.binarypackagereleasecontents.BinaryPackageReleaseContents">
        <allow
            interface="lp.soyuz.interfaces.binarypackagereleasecontents.IBinaryPackageReleaseContents"/>
    </class>

    <!-- BinaryPackageReleaseContentsSet -->

    <securedutility
        class="lp.soyuz.model.binarypackagereleasecontents.BinaryPackageReleaseContents"
        provides="lp.soyuz.interfaces.binarypackagereleasecontents.IBinaryPackageReleaseContentsSet">
        <allow
            interface="lp.soyuz.interfaces.binarypackagereleasecontents.IBinaryPackageReleaseContentsSet"/>
    </securedutility>

   <webservice:register module="lp.soyuz.interfaces.webservice" />

</configure>