Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 294536 Details for
Bug 406321
3.22: security-response-team@redhat.com Cc for new security bugs.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to Bugzilla/Bug.pm
security_group_patch (text/plain), 1.90 KB, created by
Noura El hawary
on 2008-02-11 04:54:26 UTC
(
hide
)
Description:
patch to Bugzilla/Bug.pm
Filename:
MIME Type:
Creator:
Noura El hawary
Created:
2008-02-11 04:54:26 UTC
Size:
1.90 KB
patch
obsolete
>Index: Bugzilla/Bug.pm >=================================================================== >RCS file: /cvs/qa/rh_bugzilla_3/Bugzilla/Bug.pm,v >retrieving revision 1.16 >diff -u -r1.16 Bug.pm >--- Bugzilla/Bug.pm 4 Feb 2008 22:25:26 -0000 1.16 >+++ Bugzilla/Bug.pm 11 Feb 2008 04:44:02 -0000 >@@ -359,6 +359,42 @@ > # Update the bug instance as well > $bug->{creation_ts} = $timestamp; > >+ # REDHAT EXTENSION START 406321 >+ # REDHAT If group is security, then add security-response-team@redhat.com >+ # REDHAT to cclist and only allow cc's in the groups assigned. >+ foreach my $groupid (@$groups) { >+ if ($groupid == 71) { >+ my $ccid = login_to_id("security-response-team\@redhat.com"); >+ my %unique_ccids; >+ map { $unique_ccids{$_} = 1 } @$cc_ids; >+ push (@$cc_ids, $ccid) if !$unique_ccids{$ccid}; >+ >+ my @tempccids = (); >+ foreach my $gid (@$groups) { >+ my $group_obj = new Bugzilla::Group($gid); >+ my $gname = $group_obj->name; >+ foreach my $ccid (@$cc_ids) { >+ my $cc_user = new Bugzilla::User($ccid); >+ if ($cc_user->in_group($gname)){ >+ push @tempccids, $ccid; >+ } >+ } >+ } >+ @$cc_ids = @tempccids; >+ >+ # Add Security keyword >+ my $keyword_found = 0; >+ my $keyword_obj = Bugzilla::Keyword->check("Security"); >+ foreach my $keyword_id (map($_->id, @$keywords)) { >+ if ($keyword_id == $keyword_obj->id){ >+ $keyword_found = 1; >+ } >+ } >+ push (@$keywords, $keyword_obj) if !$keyword_found; >+ } >+ } >+ # REDHAT EXTENSION END 406321 >+ > # Add the CCs > my $sth_cc = $dbh->prepare('INSERT INTO cc (bug_id, who) VALUES (?,?)'); > foreach my $user_id (@$cc_ids) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
dkl
: review+
Actions:
View
|
Diff
Attachments on
bug 406321
: 294536 |
294537
|
294615